控制台报错提示:
NACOS ConnectException httpPost] currentServerAddr: http://localhost:8848
解决:
spring:
cloud:
nacos:
discovery:
server-addr: 192.168.108.134:8848
config:
server-addr: 192.168.108.134:8848
file-extension: yaml
两点注意:
- config是nacos配置中心需要的
- file-extension: yaml 这个也很重要(引入renrenfast就是少了这个一直报错)