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

一个不小心出现的错误,接口测试报500

日志输出信息如下:

[nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

 我的报错原因是在impl实现类中没有写@Autowried

posted on 2023-10-11 21:14  201812  阅读(537)  评论(0)    收藏  举报