在蝴蝶项管开发完之后需要将数据库换成达梦
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/d99d1eeb25b949c3b95694ef4c0cd72f.png
1.引入达梦驱动
<dm.version>8.1.2.141</dm.version>
<dependency
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>${dm.version}</version>
</dependency>
```![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/65d93dbecc2d4d5ea1699c642305a17e.png)
2.引入mybaits plus
<version.mybatisplus>3.4.1</version.mybatisplus>
com.baomidou mybatis-plus-boot-starter ${version.mybatisplus} ```3.mybatis plus config
import org.springframework.context.annotation.Configuration;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
@Configuration
public class MybatisPlusConfig {
/**
* 新多租户插件配置,一缓和二缓遵循mybatis的规则,需要设置 MybatisConfiguration#useDeprecatedExecutor = false 避免缓存万一出现问题
*/
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.DM));
return interceptor;
}
}