-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PageHelper在SpringBoot的@PostConstruct 中不生效 #38
Comments
我现在自己实现了配置方法,没有使用starter了,还有一种方式是,直接定义一个PageInterceptor Bean就可以了。 @configuration
} |
如果配合 通用 Mapper 使用,可以用 |
使用了通用 |
所以这个最后的解决办法是什么,我看了半天都没看明白 |
依赖版本 pagehelper-spring-boot-starter 1.2.4
从debug结果来看,Bean的PostConstruct执行的时候,Pagehelper的autoconfigure还没有初始化。
和git上面另外一个人出现的问题现象基本一致
https://github.com/fengcbo/pagehelper-spring-boot
The text was updated successfully, but these errors were encountered: