- 【版权所有,文章允许转载,但须以链接方式注明源地址,否则追究法律责任】
- 【创作不易,点个赞就是对我最大的支持】
前言
仅作为学习笔记,供大家参考
总结的不错的话,记得点赞收藏关注哦!
报错信息
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type ‘com.bdqn.dao.GradeleDao’ that could not be found.
Action:
Consider defining a bean of type ‘com.bdqn.dao.GradeleDao’ in your configuration.
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type ‘com.bdqn.dao.GradeleDao’ that could not be found.
Action:
Consider defining a bean of type ‘com.bdqn.dao.GradeleDao’ in your configuration.
报错原因
- 因为我之前SpringBoot主加载类报错,
- 不下载依赖, 所以百度加了这个图中红笔圈住的括号,
- 导致我整整一天项目找不到接口,百思不得其解,
- 最后终于发现是它搞的鬼,原因目前还没搞清楚
- 如果你也是找不到接口可以试一下把这个注释掉,
- 注释掉之后项目成功运行,没有报错!
最后我建议SpringBoot项目还是不要用jsp了,最好还是用thymeleaf的模板,用法就是在html表头加一句话
<html lang="en" xmlns:th="http://www.thymeleaf.org">
创作不易,点个赞就是对我最大的支持~
wxgzh:程序员温眉
CSDN:程序员温眉
每天进步一点点的程序员