千里li 2021-08-25 16:36 采纳率: 0%
浏览 16

跟着B站一个up主的视频做Spring boot项目时遇到的问题

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

java.lang.NullPointerException: null

img

  • 写回答

1条回答 默认 最新

  • 依然饭特香7 2021-08-25 16:53
    关注

    for循环外面套一个判断 if(cookies != null){循环逻辑}

    评论

报告相同问题?

问题事件

  • 创建了问题 8月25日