励志进化的猿 2021-12-27 18:38 采纳率: 0%
浏览 44

.NullPointerException] with root cause

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

可能是注入时忘记加入

@Autowired或者@Resource

  • 写回答

1条回答 默认 最新

  • CSDN专家-sinJack 2021-12-27 18:54
    关注

    nested exception is java.lang.NullPointerException] with root cause
    空指针异常,对象为空导致的。

    评论

报告相同问题?

问题事件

  • 创建了问题 12月27日