HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram
使用PageHelper出现的坑!!!
出现这个问题的时候,检查了Dao层是否有错,结果发现都没有问题。最后看了看配置发现PageHelper配置出现了问题
PageHelper配置参数supportMethodsArguments建议不要设置为全局
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200612164704727.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM5MjMxMjg0,size_16,color_FFFFFF,t_70#pic_center)
配置的时候一定要注意不要设置此参数,此参数配置后会自动分页
官方文档
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200612165029370.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM5MjMxMjg0,size_16,color_FFFFFF,t_70#pic_center)