项目基于 https://github.com/elunez/eladmin 1.5正式版
增加了集成多数据源版mp。方便广大G友二次开发。
修改说明如下
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.0.7.1</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.0.7.1</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>2.5.0</version>
</dependency>
mybatis-plus:
# 扫描 mapper.xml
mapper-locations: classpath:/mapper/**/*Mapper.xml
所在包向上移动一层,并添加排除Druid数据源自动配置项
增加@ComponentScan(basePackages = {"me.zhengjie", "xxx.xxx"}),方便扩展2次开发。