[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/student_one] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
出错的语句 this.gotoPage("../student_one/login", request, response);
翻译一下;
Servlet.service服务(对于路径为[]的上下文中的servlet[dispatcherServlet],引发了异常[请求处理失败;嵌套异常为java.lang.NullPointerException]有根本原因
原因:
说明是上面红色字体的url引发的错误(可能url不存在,所跳转的url( path [/student_one] )可能与web项目的root路径(一般是项目名)冲突)
/student_one是我的web项目的root路径
解决方案:
把/student_one/去掉