Nacos启动失败:Nacos Server did not start because dumpservice bean construction failure:No DataSource set

问题:本地Docker搭建了Nacos(使用数据库),一直使用正常;突然有一天Nacos一直启动报错:“Nacos Server did not start because dumpservice bean construction failure :No DataSource set”。

原因:链接MySql数据库连接配置错误,或者使用了高版本的数据库导致的;Nacos链接数据connectTimeout默认1000毫秒、socketTimeout默认3000毫秒;Mysql链接超时,将超时时间调大。

解决:文件application.properties修改:"?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000"  =>  "?characterEncoding=utf8&connectTimeout=10000&socketTimeout=30000"

 

猜你喜欢

转载自blog.csdn.net/qq_34272964/article/details/124176169