| | |
| | | package com.iailab.framework.tenant.config; |
| | | |
| | | import com.baomidou.dynamic.datasource.processor.DsProcessor; |
| | | import com.baomidou.dynamic.datasource.processor.DsSpelExpressionProcessor; |
| | | import com.iailab.framework.common.enums.WebFilterOrderEnum; |
| | | import com.iailab.framework.mybatis.core.util.MyBatisUtils; |
| | | import com.iailab.framework.redis.config.IailabCacheProperties; |
| | | import com.iailab.framework.tenant.core.aop.TenantIgnoreAspect; |
| | | import com.iailab.framework.tenant.core.db.TenantDatabaseInterceptor; |
| | | import com.iailab.framework.tenant.core.db.dynamic.TenantDsProcessor; |
| | | import com.iailab.framework.tenant.core.job.TenantJobAspect; |
| | | import com.iailab.framework.tenant.core.mq.rabbitmq.TenantRabbitMQInitializer; |
| | | import com.iailab.framework.tenant.core.mq.redis.TenantRedisMessageInterceptor; |
| | |
| | | return inner; |
| | | } |
| | | |
| | | @Bean |
| | | public DsProcessor dsProcessor( |
| | | // TenantFrameworkService tenantFrameworkService, |
| | | // DataSource dataSource, |
| | | // DefaultDataSourceCreator dataSourceCreator |
| | | ) { |
| | | // TenantDsProcessor tenantDsProcessor = new TenantDsProcessor(tenantFrameworkService, dataSourceCreator); |
| | | TenantDsProcessor tenantDsProcessor = new TenantDsProcessor(); |
| | | tenantDsProcessor.setNextProcessor(new DsSpelExpressionProcessor()); |
| | | return tenantDsProcessor; |
| | | } |
| | | |
| | | // ========== WEB ========== |
| | | |
| | | @Bean |