@ConditionalOnProperty(prefix="mybatis",
value="enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value=MybatisPageHelperProperties.class)
@ConditionalOnClass(value=com.github.pagehelper.PageInterceptor.class)
@ConditionalOnBean(value=javax.sql.DataSource.class)
@AutoConfigureBefore(value=MybatisAutoConfiguration.class)
@Configuration
public class MybatisPageHelperAutoConfiguration
extends Object
| Constructor and Description |
|---|
MybatisPageHelperAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
com.github.pagehelper.PageInterceptor |
pageInterceptor(MybatisPageHelperProperties pageHelperProperties)
|
@ConditionalOnMissingBean(value=com.github.pagehelper.PageInterceptor.class) @Bean public com.github.pagehelper.PageInterceptor pageInterceptor(MybatisPageHelperProperties pageHelperProperties)
pageHelperProperties - Mybatis page helper 属性配置Copyright © 2018–2020. All rights reserved.