空指针异常:java.lang.NullPointerException: null

报错信息如下:
ERROR 22460 --- [nio-8082-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

在这里插入图片描述
遇到错误: 访问端口
问题分析: 写的有分页查询,但是查询的时候只执行的方法,没有加上page,limit
解决方案: 访问时加上page,limit
例: http://localhost:8082/select?page=1&limit=2

猜你喜欢

转载自blog.csdn.net/Beyonod/article/details/115932664
今日推荐