确保spring.cloud.nacos.config.server-addr是Spring Cloud Nacos Config支持的属性。根据参考信息,这个属性用于指定Nacos配置中心的地址。 检查Spring Cloud Nacos Config依赖: 确认你的项目中已经正确引入了Spring Cloud Nacos Config的依赖。例如,在Maven项目的pom.xml中,应该有类似以下的依赖: xml <dependency>...
spring:cloud:nacos:config:server-addr:你的Nacos服务器地址
5、配置文件中使用{cipher}开头标识加密数据 6、在Config Client服务获取加密数据 importorg.springframework.beans.factory.annotation.Value;importorg.springframework.cloud.context.config.annotation.RefreshScope;importorg.springframework.web.bind.annotation.GetMapping;importorg.springframework.web.bind.annotation.RestCo...
看报错说的时nacos config client 使用了currentServerAddr: http://localhost:8848去连nacos 连不上报错 怎么会用这个地址连呢? 网上搜罗不到有用的解决方案 研究pom文件时发现 1 2 3 4 5 <!--SpringCloud2020及以后的版本默认不启用 bootstrap 配置,我们需要在pom里面显式地引入:--> ...