Tanking
Tanking
# consumer bootstrap.yaml ``` spring: application: name: dubbo-nacos-consumer main: # Spring Boot 2.1 需要设定 allow-bean-definition-overriding: true cloud: nacos: config: server-addr: 172.16.249.223:8848 file-extension: yaml discovery: server-addr: 172.16.249.223:8848 enabled: true register-enabled: true...
### 当用户启动时,如果有配置类里使用了这下面这几个注解,会拿不到配置信息。应该是优先级的问题。 @NacosConfigurationProperties @NacosPropertySource @NacosPropertySources ### 解决办法: 在application.yaml内将所有需要加载的配置文件都配置上。这个优先级最高。会把所有配置文件从配置中心拉到本地。然后再使用 @ConfigurationProperties即可获取配置。 nacos: config: bootstrap: enable: true server-addr: 172.16.249.223:8848 data-id: wf-riskmonitor-service.yaml group: DEFAULT_GROUP type: yaml auto-refresh: true ### 上面的解决办法虽然可以实现配置文件加载,但是有另一个问题,就是所有的配置Bean在配置更新时不能重新初始化。 求指教
after deleting a job Zookeeper the data has been deleted but the configuration of the application has not been deleted so restart, the job register again have good plan ????
不同环境的redis配置不同时如何加载呢! Log4j:log4j-spring.properties, log4j-spring.xml, log4j.properties, log4j.xml 默认只认识这些配置文件目录
spirng cloud gateway不支持呢。。。
版本: sentinel dashboard 1.8.2 spring cloud gateway Hoxton.SR8 问题: ### ReactiveCompositeDiscoveryClient_ 会加个这前缀 