Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is

最近学习springboot 走了不少弯路 ,总是出现这个错误

项目可以运行,但是查询总是出问题Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p
总结了以下解决方案

1.查看数据库配置是否有问题 是否添加注解扫描包 和加载映射配置文件
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p


**
2.Controller 层没有加@ResponseBody注解
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p




3.Service层实现类未添加注解@Autowired
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p

如果有新的错误解决方法会持续更新,做springboot项目一定要心细些!!!
(路漫漫其修远兮,吾将上下而求索)

相关文章: