admin管理员组文章数量:1794759
解决异常: Nacos Server did not start because dumpservice bean construction failure : No DataSource set
相信很多同学用Nacos配置mysql时都遇到了这个报错(No DataSource set)
2022-01-22 10:23:25,063 ERROR Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memoryMonitor' defined in URL [jar:file:/F:/Environment/nacos-Server-2.0.3/target/nacos-server.jar!/BOOT-INF/lib/nacos-config-2.0.3.jar!/com/alibaba/nacos/config/server/monitor/MemoryMonitor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'asyncNotifyService': Unsatisfied dependency expressed through field 'dumpservice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'externalDumpService': Invocation of init method failed; nested exception is ErrCode:500, ErrMsg:Nacos Server did not start because dumpservice bean construction failure : No DataSource set先简单总结一下nacos配置mysql步骤:
一般都是在配置application.properties文件时出了问题, 如果直接照抄官方文档会报错, 因为mysql8.0之后的版本, 需要在官网文档配置mysql的基础上加上mysql时区的设置
正确的配置如下:
spring.datasource.platform=mysql db.num=1 db.url.0=jdbc:mysql://127.0.0.1:3306/nacos_config?characterEncoding=utf8&serverTimezone=UTC&connectTimeout=1000&socketTimeout=3000&autoReconnect=true db.user=我的mysql用户名 db.password=我的密码启动成功!
本文标签: 异常SERVERstartdumpserviceNacos
版权声明:本文标题:解决异常: Nacos Server did not start because dumpservice bean construction failure : No DataSource set 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686510147a75690.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论