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

以上报错原因一般都是所在controller中引入service时候,忘记写注解@Resource或者@Autowired注解导致

猜你喜欢

转载自www.cnblogs.com/zhangzijun/p/11206570.html