Closed suiyueqiannian closed 1 year ago
配置如下:
nacos: config: bootstrap: enable: true log-enable: true server-addr: "http://internal-k8s-xx-xx.elb.amazonaws.com.cn/nacos" data-id: fsm-dispatch group: fsm type: yaml auto-refresh: true namespace: '@profiles.active@' password: 'nacos' username: 'nacos' max-retry: 10
同时使用
@NacosValue("${dubbo.registry.address}") private String address;
pom.xml 引入
<dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-config-spring-boot-starter</artifactId> <version>0.2.12</version> </dependency>
最终报错,Could not resolve placeholder 'dubbo.registry.address' in value "${dubbo.registry.address}"
nacos控制台的配置
spring boot版本 2.7.x
这个应该是nginx代理的问题,9848端口也需要代理转发,另外/nacos可以去掉试试,默认会自动加上的
配置如下:
同时使用
pom.xml 引入
最终报错,Could not resolve placeholder 'dubbo.registry.address' in value "${dubbo.registry.address}"