Liuzh
Liuzh
pagehelper-spring-boot 发布了 1.1.0-beta 版本,试试这个版本。 2017-01-17 12:22 GMT+08:00 is00hcw : > 建议查看以下spring源代码, 猜测是因为在PageHelperAutoConfiguration同时标注了@Configuration > 和@ConfigurationProperties, > 导致@PostConstruct方法被执行两次. 而我上面贴的代码正是把这两个分开在不同的类上. > > - > > org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinde > rAutoConfiguration#afterSingletonsInstantiated > - > > org.springframework.cloud.context.properties....
@is00hcw 那就应该是你猜的这个原因,只是复现可能需要一定的条件。不用那种方式就好了。 最近会发布1.1.0版本,和 beta 版本没区别。
mybatis原生的 RowBounds ?
这个starter是这样,你可以参考这个starter,把关键部分摘出来自己配置插件就行。
确实可以这么实现,我会找时间尽快测试。
试试能不能把 mybatis-mapper 的 ExampleWrapper 拷过来。
sql特殊解析不了,这个错影响使用吗?
## 2.6 Changes to Auto-configuration Auto-configuration Registration If you have created your own auto-configurations, you should move the registration from spring.factories under the org.springframework.boot.autoconfigure.EnableAutoConfiguration key to a new file named...
https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.developing-auto-configuration
提供信息太少。