概述
本地调试和服务器调试都无法连通
anand
2018-11-20 16:30:31
4696
异常信息:
com.alibaba.nacos.api.exception.NacosException: null
at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:227) ~[nacos-client-0.3.0.jar:na]
at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:133) ~[nacos-client-0.3.0.jar:na]
at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:89) ~[nacos-client-0.3.0.jar:na]
at org.springframework.cloud.alibaba.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85) [spring-cloud-alibaba-nacos-config-0.2.0.RELEASE.jar:0.2.0.RELEASE]
at org.springframework.cloud.alibaba.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:75) [spring-cloud-alibaba-nacos-config-0.2.0.RELEASE.jar:0.2.0.RELEASE]
at org.springframework.cloud.alibaba.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:95) [spring-cloud-alibaba-nacos-config-0.2.0.RELEASE.jar:0.2.0.RELEASE]
at org.springframework.cloud.alibaba.nacos.client.NacosPropertySourceLocator.loadApplicationConfiguration(NacosPropertySourceLocator.java:84) [spring-cloud-alibaba-nacos-config-0.2.0.RELEASE.jar:0.2.0.RELEASE]
at org.springframework.cloud.alibaba.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:76) [spring-cloud-alibaba-nacos-config-0.2.0.RELEASE.jar:0.2.0.RELEASE]
at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:94) [spring-cloud-context-2.0.0.RELEASE.jar:2.0.0.RELEASE]
at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:636) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:376) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:328) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1258) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.4.RELEASE.jar:2.0.4.RELEASE]
at com.alibaba.nacos.example.spring.cloud.NacosConfigApplication.main(NacosConfigApplication.java:15) [classes/:na]
配置信息
org.springframework.cloud
spring-cloud-starter-alibaba-nacos-config
0.2.0.RELEASE
bootstrap.properties
spring.cloud.nacos.config.endpoint=acm.aliyun.com
spring.cloud.nacos.config.namespace=DEFAULT_GROUP
spring.cloud.nacos.config.access-key=LTAI2MKeFgsI5Qci
spring.cloud.nacos.config.secret-key=X8ixkSKeKDPI5uofVuZWZfmahu6Z87
spring.application.name=com.lanrenyun.basic.order
spring.cloud.nacos.config.file-extension=properties
server.port=9000
添加回答
分享到
最后
以上就是风趣身影为你收集整理的nacos 本地测试_本地调试和服务器调试都无法连通-问答-阿里云开发者社区-阿里云...的全部内容,希望文章能够帮你解决nacos 本地测试_本地调试和服务器调试都无法连通-问答-阿里云开发者社区-阿里云...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复