explicit : 明确的
原因一:启动类的位置不对
Springboot项目启动类的位置不对。要将启动类主包下,其他的类放在主包的子包中,即包含所有子包。(spring-boot会自动加载启动类所在包下及其子包下的所有组件)
![](https://img-blog.csdnimg.cn/direct/9c1e795fe0a34991b9667a5fb7804a2d.png)
原因二:控制器的URL路径书写问题
控制器的URL路径书写问题
@RequestMapping(“/xxx”)
实际访问的路径与"xxx"不符合:
http://localhost:9001//orm/student/query?id=1 我不小心多加了两个//
其他原因自行CSDN