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.07k stars 12.81k forks source link

The nacos as a configuration center startup priority in the spring boot project #1597

Closed fayechenlong closed 5 years ago

fayechenlong commented 5 years ago

我在springboot项目中使用nacos作为dubbo的注册中心,nacos同时也作为配置中心,我在使用中发现一个问题,nacos配置中心的启动优先级是落后于spring boot的一些功能的,比如springboot的自带的数据源,启动优先级也落后于dubbo,导致dubbo等配置无法使用nacos进行管理,nacos配置中心启动优先级不应该是最高的么?

nacos-bot commented 5 years ago

Hi @fayechenlong, we detect non-English characters in the issue. This comment is an auto translation from @nacos-bot to help other users to understand this issue. We encourage you to describe your issue in English which is more friendly to other users.

The nacos as a configuration center startup priority in the spring boot project

I use nacos as the registration center of dubbo in the springboot project. Nacos also serves as the configuration center. I found a problem in the use. The startup priority of the nacos configuration center is behind some functions of the spring boot, such as springboot. The data source, startup priority also lags behind dubbo, resulting in dubbo and other configurations can not be managed using nacos, nacos configuration center startup priority should not be the highest?

zhengweiye commented 5 years ago

我也遇到了,不懂怎么解决

chuntaojun commented 5 years ago

我将此issue移动到nacos-boot项目中

https://github.com/nacos-group/nacos-spring-boot-project/issues/37

fayechenlong commented 5 years ago

官方说 fixed in nacos-config-spring-boot-starter version 0.2.2 @zhengweiye 等这个版本吧

paul-gpt commented 4 years ago

测试了下0.2.3还是有问题

chuntaojun commented 4 years ago

测试了下0.2.3还是有问题

按wiki操作了嘛

DaC1989 commented 4 years ago

版本0.2.3,可能有点小问题: 设置参数 nacos.config.bootstrap.enable=true不起作用 但是 nacos.config.bootstrap.log.enable=true 就可以。但我看文档,这个参数是显示日志是否打印的

chuntaojun commented 4 years ago

版本0.2.3,可能有点小问题: 设置参数 nacos.config.bootstrap.enable=true不起作用 但是 nacos.config.bootstrap.log.enable=true 就可以。但我看文档,这个参数是显示日志是否打印的

确实,因为dubbo的启动时机确实太早了,这个日志级别的加载时机可以解决问题

kocall commented 4 years ago

spring cloud 怎么解决呢