nacos Error creating bean with name ‘nacosAuthConfig‘ defined in URL

编程入门 行业动态 更新时间:2024-10-10 02:21:59

nacos Error <a href=https://www.elefans.com/category/jswz/34/1771137.html style=creating bean with name ‘nacosAuthConfig‘ defined in URL"/>

nacos Error creating bean with name ‘nacosAuthConfig‘ defined in URL

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosAuthConfig' defined in URL

如果你是要使用外部数据库(mysql),外面很多文章都讲了,db的配置项要改好,config nacos.core.auth.plugin.nacos.token.secret.key 也要安装官网配置,即使鉴权配置的enabled是false也要配置长度32以上的字符串在secret.key上。

# db mysql
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/nacos-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user.0=root
db.password.0=password

或者使用-m standalone

但是我不想使用mysql同时又想起集群。

nacos1.3.2 无法启动 · Issue #3529 · alibaba/nacos · GitHub

 加上 -p embedded 使用derby + jraft的内嵌数据库。

更多推荐

nacos Error creating bean with name ‘nacosAuthConfig‘ defined in URL

本文发布于:2024-02-11 14:39:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1681501.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:creating   Error   nacos   bean   URL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!