Commit 8ec0be01a8a5356e4fd04ab7d36e5c20fdde70ec
1 parent
6ac96fac
新增:达梦数据库驱动,KeyGenerator
Showing
3 changed files
with
15 additions
and
5 deletions
yudao-dependencies/pom.xml
| ... | ... | @@ -28,6 +28,7 @@ |
| 28 | 28 | <dynamic-datasource.version>3.6.1</dynamic-datasource.version> |
| 29 | 29 | <mybatis-plus-join-boot-starter.version>1.4.3.2</mybatis-plus-join-boot-starter.version> |
| 30 | 30 | <redisson.version>3.18.0</redisson.version> |
| 31 | + <dm8.jdbc.version>8.1.2.141</dm8.jdbc.version> | |
| 31 | 32 | <!-- 服务保障相关 --> |
| 32 | 33 | <lock4j.version>2.2.3</lock4j.version> |
| 33 | 34 | <resilience4j.version>1.7.1</resilience4j.version> |
| ... | ... | @@ -228,6 +229,13 @@ |
| 228 | 229 | <version>${redisson.version}</version> |
| 229 | 230 | </dependency> |
| 230 | 231 | |
| 232 | + <dependency> | |
| 233 | + <groupId>com.dameng</groupId> | |
| 234 | + <artifactId>DmJdbcDriver18</artifactId> | |
| 235 | + <version>${dm8.jdbc.version}</version> | |
| 236 | + </dependency> | |
| 237 | + | |
| 238 | + | |
| 231 | 239 | <!-- Job 定时任务相关 --> |
| 232 | 240 | <dependency> |
| 233 | 241 | <groupId>cn.iocoder.boot</groupId> | ... | ... |
yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml
| ... | ... | @@ -45,7 +45,10 @@ |
| 45 | 45 | <groupId>com.microsoft.sqlserver</groupId> |
| 46 | 46 | <artifactId>mssql-jdbc</artifactId> |
| 47 | 47 | </dependency> |
| 48 | - | |
| 48 | + <dependency> | |
| 49 | + <groupId>com.dameng</groupId> | |
| 50 | + <artifactId>DmJdbcDriver18</artifactId> | |
| 51 | + </dependency> | |
| 49 | 52 | <dependency> |
| 50 | 53 | <groupId>com.alibaba</groupId> |
| 51 | 54 | <artifactId>druid-spring-boot-starter</artifactId> | ... | ... |
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/config/YudaoMybatisAutoConfiguration.java
| ... | ... | @@ -5,10 +5,7 @@ import cn.iocoder.yudao.framework.mybatis.core.handler.DefaultDBFieldHandler; |
| 5 | 5 | import com.baomidou.mybatisplus.annotation.DbType; |
| 6 | 6 | import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; |
| 7 | 7 | import com.baomidou.mybatisplus.core.incrementer.IKeyGenerator; |
| 8 | -import com.baomidou.mybatisplus.extension.incrementer.H2KeyGenerator; | |
| 9 | -import com.baomidou.mybatisplus.extension.incrementer.KingbaseKeyGenerator; | |
| 10 | -import com.baomidou.mybatisplus.extension.incrementer.OracleKeyGenerator; | |
| 11 | -import com.baomidou.mybatisplus.extension.incrementer.PostgreKeyGenerator; | |
| 8 | +import com.baomidou.mybatisplus.extension.incrementer.*; | |
| 12 | 9 | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
| 13 | 10 | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
| 14 | 11 | import org.apache.ibatis.annotations.Mapper; |
| ... | ... | @@ -55,6 +52,8 @@ public class YudaoMybatisAutoConfiguration { |
| 55 | 52 | return new H2KeyGenerator(); |
| 56 | 53 | case KINGBASE_ES: |
| 57 | 54 | return new KingbaseKeyGenerator(); |
| 55 | + case DM: | |
| 56 | + return new DmKeyGenerator(); | |
| 58 | 57 | } |
| 59 | 58 | } |
| 60 | 59 | // 找不到合适的 IKeyGenerator 实现类 | ... | ... |