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

相关文章:

  • 2021-08-07
  • 2021-12-26
  • 2021-08-08
  • 2021-05-23
  • 2022-12-23
  • 2021-11-04
  • 2021-09-09
  • 2021-03-31
猜你喜欢
  • 2021-12-31
  • 2021-09-09
  • 2022-01-17
  • 2021-11-09
  • 2021-04-18
  • 2021-09-20
  • 2021-12-20
相关资源
相似解决方案