We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
最近在解决 spring cloud alibaba 和 nacos 的问题。
实现了一个和 alibaba/spring-cloud-alibaba#1805 不一样的方案,在 nacos 注册时先判断 DubboBootstrap.isReady(),只有等 ready 后才去注册服务。
DubboBootstrap.isReady()
ready
现在看了源码发现一个是字段名和方法都改了。。另一个就是默认值还是 true。
true
dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java
Line 172 in 2bca144
false
The text was updated successfully, but these errors were encountered:
目前使用的 2.7.8 版本,如果能升级到 2.7.9,就能直接使用下面事件更方便的解决。
dubbo/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/context/event/DubboBootstrapStatedEvent.java
Line 31 in 2bca144
Sorry, something went wrong.
默认 true 是为了兼容 API 方式使用,直接使用 API 方式的不会触发 DubboBootstrap 初始化。
No branches or pull requests
Environment
Code
最近在解决 spring cloud alibaba 和 nacos 的问题。
实现了一个和 alibaba/spring-cloud-alibaba#1805 不一样的方案,在 nacos 注册时先判断
DubboBootstrap.isReady()
,只有等ready
后才去注册服务。现在看了源码发现一个是字段名和方法都改了。。另一个就是默认值还是
true
。dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrap.java
Line 172 in 2bca144
问题
false
?(这样在使用的时候可以直接判断是否已经启动)The text was updated successfully, but these errors were encountered: