报错:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Reques
控制台报错信息:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
原因:某个类没有加注解,导入没有被spring托管
解决:仔细检查是否忘记加注解
我是忘记加下图所示的注解,希望能帮助遇到同样问题的你~
原文:https://blog.csdn.net/weixin\_44153063/article/details/106056900
还没有评论,来说两句吧...