You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
服务可以注册到 nacos,在nacos的仪表盘可以看到服务在线,但是无法获取配置信息,在启动服务的时候,没有加载 nacosconfig 相关的bean,有个警告:
2025-02-15T14:17:48.100+08:00 WARN 25716 --- [devicemanage-service] [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.nacos.NacosConfigAutoConfiguration' of type [com.alibaba.cloud.nacos.NacosConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [nacosAnnotationProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
版本:
nacos服务:2.5.0
spring boot:3.2.12
spring cloud:2023.0.3
nacos discovery:2023.0.3.2
nacos-config:2023.0.3.2
bootstrap.yml 的一些配置:
spring:
cloud:
nacos:
discovery:
username: "nacos"
password: "xjRWQ5jpt9"
server-addr: "http://localhost:8848/"
config:
username: "nacos"
password: "xjRWQ5jpt9"
server-addr: "http://localhost:8848/"
file-extension: "yaml"
refresh-enabled: true
服务可以注册到 nacos,在nacos的仪表盘可以看到服务在线,但是无法获取配置信息,在启动服务的时候,没有加载 nacosconfig 相关的bean,有个警告:
2025-02-15T14:17:48.100+08:00 WARN 25716 --- [devicemanage-service] [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.nacos.NacosConfigAutoConfiguration' of type [com.alibaba.cloud.nacos.NacosConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [nacosAnnotationProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
并且把 config 中的用户名跟密码都输错,都没有任何提示,discovery 中的输错会有提示。
The text was updated successfully, but these errors were encountered: