@Configuration @AutoConfigureBefore(value=com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.class) public class ProjectMyBatisPlusAutoConfiguration extends Object
| 构造器和说明 |
|---|
ProjectMyBatisPlusAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
CustomDatabaseIdProvider |
customDatabaseIdProvider()
数据库id选择器,兼容多个数据库sql脚本
|
CustomInsertBatchSqlInjector |
customInsertBatchSqlInjector()
自定义sqlInjector,针对批量插入优化
|
com.baomidou.mybatisplus.core.handlers.MetaObjectHandler |
metaObjectHandler()
公共字段填充插件
|
com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor |
mybatisPlusInterceptor(cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties tenantTableProperties)
新的分页插件
|
com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor |
optimisticLockerInnerInterceptor()
乐观锁插件
|
com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor |
paginationInterceptor()
分页插件
|
com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor |
tenantLineInnerInterceptor(cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties tenantTableProperties)
多租户插件
|
cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties |
tenantTableProperties()
设置租户的表的集合,在yml配置中配置 tenant.businessTableList
|
@Bean @ConfigurationProperties(prefix="tenant") @ConditionalOnMissingBean(value=cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties.class) public cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties tenantTableProperties()
@Bean public com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor mybatisPlusInterceptor(cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties tenantTableProperties)
@Bean public com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor paginationInterceptor()
@Bean public com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor optimisticLockerInnerInterceptor()
@Bean public com.baomidou.mybatisplus.core.handlers.MetaObjectHandler metaObjectHandler()
@Bean public CustomDatabaseIdProvider customDatabaseIdProvider()
@Bean public CustomInsertBatchSqlInjector customInsertBatchSqlInjector()
@Bean public com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor tenantLineInnerInterceptor(cn.stylefeng.roses.kernel.db.api.pojo.tenant.TenantTableProperties tenantTableProperties)
Copyright © 2024. All rights reserved.