当前位置:网站首页>Nacos启动失败:Nacos Server did not start because dumpservice bean construction failure:No DataSource set
Nacos启动失败:Nacos Server did not start because dumpservice bean construction failure:No DataSource set
2022-08-06 12:00:00 【勤学如春起之苗】
问题:本地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"
————————————————
版权声明:本文为CSDN博主「寻找09之夏」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_34272964/article/details/124176169
边栏推荐
猜你喜欢

A domestic placeholder service

实践|美创助力“云学堂”数据安全风险管控建设

The entry node of the ring in the NC3 linked list

嵌入式编程和PC编程的区别

How to use wireless serial communication module to realize long-distance communication between touch screen and PLC?

Kubernetes微服务、容器介绍

零数科技携文化和旅游部艺术发展中心发布“文化艺术链”

Do-it-yourself databases: Fundamentals of concurrency management

解密一颗芯片设计的全生命周期算力需求

STM32 startup process - startup_xxxx.s file analysis (MDK and GCC dual environment)
随机推荐
Kubernetes 架构知识
1408. 数组中的字符串匹配 : 简单模拟题
《ABP Framework 极速开发》 - 教程首发
Hu-cang integrated e-commerce project (1): project background and structure introduction
Kubernetes DevOps 工具
腾讯35k出来的,他让我见识到什么叫“精通MySQL调优”
一名双非程序媛面试蚂蚁、美团、携程等大厂拿offer分享面试过程
一文搞懂什么是kubernetes Service
二维数组的各种翻转
怎么解决电脑桌面一刷新就闪屏的问题?
Link Aggregation Brief
XML usage
Kubernetes 运维经验分享
Mini Program Commodity List: Commodity Collection Implementation
重谈联想5G编码投票事件
微软新服务,允许企业扩大对其威胁情报库的访问权限
重构指标之如何监控代码圈复杂度
stp simple configuration
Talk about the dynamic proxy IP
8 medical data security scenario solutions of Meichuang Technology are launched!