赞
踩
springcloud 2020.0.4
nacos 1.4
项目启动时日志显示有成功加载到配置文件,但实际运行中取到的配置值仍为项目打包的默认配置文件值
b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name=‘bootstrapProperties-client-test.yml,platform’}, BootstrapPropertySource {name=‘bootstrapProperties-client.yml,platform’}, BootstrapPropertySource {name=‘bootstrapProperties-client,platform’}]
将application.yml配置文件中的以下条目放到bootstrap.yml文件中即可
spring:
application:
name: client
profiles:
active: test
待查
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。