迁移所有的 nacos 相关配置到 zlt-config/bootstrap.properties 文件下统一配置,并用 spring.cloud.nacos.server-addr 代替 spring.cloud.nacos.discovery.server-addr 与 spring.cloud.nacos.config.server-addr
This commit is contained in:
@@ -1,12 +1,4 @@
|
||||
########################## 通用配置 ##########################
|
||||
# 默认开发环境
|
||||
spring.profiles.active=dev
|
||||
|
||||
##### spring-boot-actuator配置
|
||||
management.endpoints.web.exposure.include=*
|
||||
management.endpoint.health.show-details=always
|
||||
|
||||
|
||||
########################## application级别通用配置 ##########################
|
||||
##### ribbon配置
|
||||
## 从注册中心刷新servelist的时间 默认30秒,单位ms
|
||||
ribbon.ServerListRefreshInterval=15000
|
||||
@@ -102,8 +94,4 @@ spring.redis.lettuce.pool.max-wait=-1
|
||||
# 连接池中的最大空闲连接
|
||||
spring.redis.lettuce.pool.max-idle=8
|
||||
# 连接池中的最小空闲连接
|
||||
spring.redis.lettuce.pool.min-idle=0
|
||||
|
||||
|
||||
##### 允许bean覆盖
|
||||
spring.main.allow-bean-definition-overriding=true
|
||||
spring.redis.lettuce.pool.min-idle=0
|
||||
Reference in New Issue
Block a user