https://github.com/pagehelper/pagehelper-spring-boot
pagehelper ?
https://github.com/pagehelper/pagehelper-spring-boot
一般情况下,你不需要做任何配置。
如果需要配置,可以使用如下方式进行配置:
application.properties:
pagehelper.propertyName=propertyValue
注意 pagehelper 配置,因为分页插件根据自己的扩展不同,支持的参数也不同,所以不能用固定的对象接收参数,所以这里使用的 Map<String,String>
,因此参数名是什么这里就写什么,IDE 也不会有自动提示。
关于可配置的属性请参考 如何使用分页插件。
Interceptor Order
如果你想要控制 拦截器插件的顺序,可以通过下面注解控制:
AutoConfigureAfter(PageHelperAutoConfiguration.class)
//Or
@AutoConfigureBefore(PageHelperAutoConfiguration.class)