Mybatis-Plus-多租户
Mybatis-Plus-多租户
cmyang2.X版本添加多租户
- 排除jar包内的mybatisplus配置,在主类xxxApplication上添加注解
1 | @ComponentScan(basePackages = {"com.xxx.web","com.xxx.starter"}, |
- 添加自定义的配置项
1 | import com.baomidou.mybatisplus.entity.GlobalConfiguration; |
1 | @ComponentScan(basePackages = {"com.xxx.web","com.xxx.starter"}, |
1 | import com.baomidou.mybatisplus.entity.GlobalConfiguration; |