|
|
@@ -156,6 +156,11 @@ mybatis:
|
|
|
# PageHelper分页插件
|
|
|
pagehelper:
|
|
|
helperDialect: mysql
|
|
|
+ #supportMethodsArguments:支持通过 Mapper 接口参数来传递分页参数,默认值false,
|
|
|
+ #分页插件会从查询方法的参数值中,自动根据上面 params 配置的字段中取值,查找到合适的值时就会自动分页。
|
|
|
+ #使用方法可以参考测试代码中的com.github.pagehelper.test.basic包下的 ArgumentsMapTest和ArgumentsObjTest。
|
|
|
+ #由于项目需要,此参数设置为true。
|
|
|
+ #影响:自定义分页排序时,会自动取 orderBy 字段值作为排序字段,如果与表字段不一致,需要在程序中显式调整
|
|
|
supportMethodsArguments: true
|
|
|
params: count=countSql
|
|
|
|