Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对应nacos当前稳定版本 nacos-server-2.2.3.zip #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhaoyansheng163
Copy link

nacos-discovery-spring-boot-starter 需要由0.2.1升级到0.2.7 否则这个案例无法获取到服务列表 https://github.com/nacos-group/nacos-examples/tree/master/nacos-spring-boot-example/nacos-spring-boot-discovery-example

debug也发现如下现象:
@NacosInjected
private NamingService namingService;
nacos-discovery-spring-boot-starter 0.2.1 版本 namingService使用的namespace是default
nacos-discovery-spring-boot-starter 0.2.7 版本 namingService使用的namespace是public
如果是使用最新的稳定版本 nacos-server-2.2.3.zip 默认的namespace也是 public

结论:
如果使用nacos-server-2.2.3.zip,需要对应使用nacos-discovery-spring-boot-starter 0.2.7。
如果一定需要用nacos-discovery-spring-boot-starter 0.2.1,则需要找下对应的nacos-server的版本

@CLAassistant
Copy link

CLAassistant commented Apr 3, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants