afei

Results 2 comments of afei

Now there are other problems: > spring: application: name: locate-service profiles: active: dev nacos: config: bootstrap: enable: true server-addr: 10.95.5.18:8848 remote-first: true namespace: 65ffd2cc-f006-42df-a333-ea07ff874b39 data-ids: LOCATE_WEB group: LOCATE type: yaml...

跟踪代码发现。同时引入nacos-config-spring-boot-starter 和nacos-discovery-spring-boot-starter ,配置文件中只配置discovery,启动后 通过@NacosInjected 注入的namingService 的serverAddr 为默认的127.0.0.1:8848 非配置文件中的配置。去掉nacos-config-spring-boot-starter的引用后正常