SpringCloud连接远程nacos报错,一直提示连接本地的localhost:8848

原创作者:https://www.cnblogs.com/chenyanbin/p/13680264.html

 

 

SpringCloud连接远程nacos报错,一直提示连接本地的localhost:8848

 

application.properties#

spring.cloud.nacos.discovery.server-addr=xxx.xxx.xxx.xxx:8848
spring.application.name=服务名

bootstrap.properties#

在resources下创建:bootstrap.properties

#nacos config
spring.cloud.nacos.config.server-addr=xxx.xxx.xxx.xxx:8848
spring.application.name=服务名

 

posted @ 2020-10-24 21:55  变换  阅读(11397)  评论(0编辑  收藏  举报