使用PageHelper时页面报错!nested exception is org.springframework.jdbc.BadSqlGrammarException

HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGram


使用PageHelper时页面报错!nested exception is org.springframework.jdbc.BadSqlGrammarException

使用PageHelper出现的坑!!!

出现这个问题的时候,检查了Dao层是否有错,结果发现都没有问题。最后看了看配置发现PageHelper配置出现了问题

PageHelper配置参数supportMethodsArguments建议不要设置为全局

使用PageHelper时页面报错!nested exception is org.springframework.jdbc.BadSqlGrammarException

配置的时候一定要注意不要设置此参数,此参数配置后会自动分页
官方文档
使用PageHelper时页面报错!nested exception is org.springframework.jdbc.BadSqlGrammarException