猿问

最后页面访问Controller报500,请问怎么解决?

项目启动正常,hello也能访问,dao测试也成功,但是最后页面访问Controller报500,查看路径也没错

控制台报错

2019-03-20 20:01:03.650 ERROR 11652 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[.[dispatcherServlet]      : Servlet.service() for servlet [dispatcherServlet] in context with path [/demo] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause


java.lang.NullPointerException: null

at com.imooc.demo.web.AreaController.getAreaById(AreaController.java:52) ~[classes/:na]


慕哥4577863
浏览 1526回答 2
2回答
随时随地看视频慕课网APP

相关分类

Java
我要回答