alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.34k stars 12.86k forks source link

springboot集成nacos,项目启动成功可以访问但是服务列表未显示 #7241

Closed likeEverything closed 2 years ago

likeEverything commented 3 years ago

springboot集成nacos,配置文件更改后项目可以正常启动及访问,但是在网页端的服务列表中未显示服务名,在集群管理中能看见节点的ip端口号等信息,启动时也没有报错

springboot版本是2.3.12.RELEASE,nacos-config-spring-boot-starter版本是0.2.7

这是application.properties的内容

spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
spring.cloud.nacos.discovery.namespace=07d5f858-f357-4399-a380-fd94542a8c20
server.port=8080
spring.application.name=test-web
lpaz010 commented 3 years ago

@likeEverything 引入了Springboot starter,配置却是SpringCloud的。建议参考官网示例再试一下吧

stale[bot] commented 2 years ago

Thanks for your feedback and contribution. But the issue/pull request has not had recent activity more than 180 days. This issue/pull request will be closed if no further activity occurs 7 days later. We may solve this issue in new version. So can you upgrade to newest version and retry? If there are still issues or want to contribute again. Please create new issue or pull request again.