报错:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Reques

一时失言乱红尘 2023-02-23 05:21 204阅读 0赞

控制台报错信息:

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

发表评论

表情:
评论列表 (有 0 条评论,204人围观)

还没有评论,来说两句吧...

相关阅读