ebc

application.properties 1.4KB

    ######设置服务器端口 ######也可以通过启动命令行参数实现:java -jar myproject.jar --server.port=9084 server.port=unknown web.root=webapp/ #会影响拦截器的配置exclude-mapping spring.mvc.static-path-pattern=/** #spring.resources.static-locations=file:${web.root} spring.resources.static-locations=classpath:/${web.root} ######context-path默认/ server.context-path=/ ######注册DispatcherServlet对应path,亦可通过dispatcherRegistration方法配置 #server.servlet-path=/ipu1 #使用maven中的变量替换 logging.file=target/logs/${project.artifactId}.log spring.application.name=${project.artifactId} ######sba监控 management.security.enabled=false spring.boot.admin.url=http://www.aiipu.com:8888 security.user.name=ipu security.user.password=ipu spring.boot.admin.client.metadata.user.name=${security.user.name} spring.boot.admin.client.metadata.user.password=${security.user.password} ######查看spring错误日志 #logging.level.org.springframework=DEBUG ######session使用redis spring.session.store-type=redis ######redis集群和连接池相关配置 spring.redis.cluster.nodes=123.57.35.51:11001,123.57.35.51:11002,123.57.35.51:11003,123.57.35.51:11004,123.57.35.51:11005,123.57.35.51:11006 spring.redis.cluster.timeout=5 spring.redis.cluster.max-redirects=3 spring.redis.password=ipu spring.redis.pool.max-active=8 spring.redis.pool.max-idle=8 spring.redis.pool.max-wait=-1 #默认0,不回收 spring.redis.pool.min-idle=8