run程序后出现了这个问题

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'commonService': Unsatisfied dependency expressed through field 'commonDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'commonDao' defined in file [C:\springboot-schema\target\classes\com\dao\CommonDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/spring/boot/starter/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail !  Cause:java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

它很长,而且总是会出现nest,原来是嵌套问题,这个是我看这篇文章了解的

https://blog.csdn.net/qq_50541673/article/details/123617180?ops_request_misc=&request_id=&biz_id=102&utm_term=Error%20creating%20bean%20with%20name%20&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-123617180.142^v13^rank_v32,157^v14^new_3&spm=1018.2226.3001.4187

然后我就找到了最根本的错误(嵌套里的最后一个),它的意思是我数据库没连上

Caused by: com.baomidou.mybatisplus.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail !  Cause:java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

我看了一下我的application.yml,原来是我的密码没加‘’单引号,导致数据库连不上,无语了。

解决以Error: GlobalConfigUtils setMetaData Fail ! 为基础的嵌套问题(包括common troller,commonservice等问题)相关推荐

  1. Error: GlobalConfigUtils setMetaData Fail

    有疑问,请留言,看到后统一回复,谢谢配合! 问题现象: Caused by: com.baomidou.mybatisplus.exceptions.MybatisPlusException: Err ...

  2. MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail

    随手记一下: 项目启动报错com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure,其中很重要 ...

  3. 嵌入式linux解决方法 | u-boot NFS下载文件报错:Loading: *** ERROR: File lookup fail

    一.问题描述 u-boot version:2016.03 ubuntu version:18.04 ubuntu中环境配置正确,通过其他客户端能够挂载上.但是使用uboot得nfs下载命令会报错: ...

  4. android stack error message is Fail to start the plugin

    E: 08-26 16:34:11.934: E/AliSDK(32236): 错误编码 = 10022 08-26 16:34:11.934: E/AliSDK(32236): 错误消息 = SDK ...

  5. R语言构建随机森林模型错误解决:Error in y - ymean : non-numeric argument to binary operator

    R语言构建随机森林模型错误解决:Error in y - ymean : non-numeric argument to binary operator 目录 R语言构建随机森林模型错误解决:Erro ...

  6. 解决:Error: Aesthetics must be either length 1 or the same as the data (5): fill

    解决:Error: Aesthetics must be either length 1 or the same as the data (5): fill 目录 解决:Error: Aestheti ...

  7. 解决:Error: Insufficient values in manual scale. 5 needed but only 4 provided.Run `rlang::last_error()

    解决:Error: Insufficient values in manual scale. 5 needed but only 4 provided.Run `rlang::last_error() ...

  8. cann't connect to db! mysql!,解决SQL Error: Can't connect to MySQL server on错误

    解决SQL Error: Can't connect to MySQL server on错误 文章来源:传奇帮手游 发布时间:2020-12-02 文章性质:原创文章 今天帮主在群里看到有一个兄弟在 ...

  9. MySQL 5.6 解决InnoDB: Error: Table “mysql“.“innodb_table_stats“ not found.问题

    MySQL 5.6 解决InnoDB: Error: Table "mysql"."innodb_table_stats" not found.问题 参考文章: ...

最新文章

  1. linux安全问答(1)
  2. 在Android Studio中打开DDMS
  3. First、FirstOrDefault、Single、SingleOrDefault 的区别
  4. ArcGIS实验教程——实验六:空间数据格式转换
  5. Java转换难题者,不适合工作(或面试)
  6. P1488 肥猫的游戏
  7. 小程序源码 租房管理系统_如何通过租房小程序开发快速引流
  8. 2017年公众号32篇热文回看
  9. Python使用tkinter编写图片浏览程序
  10. 南阳市服务器主机销售,南阳市服务器价格
  11. Zookeeper-入门-安装
  12. springboot智慧幼儿园管理系统的设计与实现毕业设计源码271611
  13. 端到端的含义,统计学习、机器学习和深度学习的区别与联系
  14. 数据结构——课程设计
  15. R语言|plot和par函数绘图详解,绘图区域设置 颜色设置 绘图后修改及图像输出
  16. matlab梯形法求二重积分,复化梯形公式公式求二重积分matlab源码
  17. Linux下定时函数timerfd_xxx()的使用
  18. 云服务器系统种类,云服务器系统种类
  19. 小鸡G4工程款 上手体验
  20. 杰理之MIDI音乐实现【篇】

热门文章

  1. Spring的简介和工作原理
  2. 数据加密技术在计算机网络安全中的应用实例,数据加密技术在计算机网络安全中的应用.doc...
  3. 微信小程序转码百度小程序
  4. 项目经理的专业面试10条经验总结
  5. 联想拯救者R7000安装Ubuntu18.04
  6. AI时代取代手机:语音交互设计漫谈
  7. PS制作红色拟物化时钟icon图标
  8. 脑机接口数据分析工具EEGLAB04---绘制通道光谱图
  9. 条码软件如何添加图片
  10. 调试热释电传感器(BISS0001电路)中遇到的问题