修改配置服务器读取本地配置而不是GIT,RabbitMQ自动刷新
1、修改配置服务器的配置文件。
profiles: active: native,表示启用本地文件
修改git为native:search-locations: classpath:/config
spring:
application:
name: config-server
profiles:
active: native
cloud:
config:
label: master
server:
native:
search-locations: classpath:/config
#git:
# uri: https://github.com/MikeChengege/SpringCloud/
# searchPaths: respo
2、修改客户端配置文件
启用本地配置profiles: active: qas
spring:
application:
name: product-view-service-feign
profiles:
active: qas