Commit 0ae11e0eb8dc3bbdacc341cf615e92fc85d257c4
1 parent
a5081b94
fix: JdbcUtils.getDbType 使用MyBatis-Plus工具
Showing
1 changed file
with
1 additions
and
2 deletions
yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/core/util/JdbcUtils.java
| ... | ... | @@ -35,8 +35,7 @@ public class JdbcUtils { |
| 35 | 35 | * @return DB 类型 |
| 36 | 36 | */ |
| 37 | 37 | public static DbType getDbType(String url) { |
| 38 | - String name = com.alibaba.druid.util.JdbcUtils.getDbType(url, null); | |
| 39 | - return DbType.getDbType(name); | |
| 38 | + return com.baomidou.mybatisplus.extension.toolkit.JdbcUtils.getDbType(url); | |
| 40 | 39 | } |
| 41 | 40 | |
| 42 | 41 | } | ... | ... |