|
пре 5 месеци | |
---|---|---|
flow-app | пре 5 месеци | |
flow-common | пре 5 месеци | |
flow-file | пре 8 месеци | |
flow-im | пре 6 месеци | |
flow-oauth | пре 8 месеци | |
flow-report | пре 8 месеци | |
flow-system | пре 6 месеци | |
flow-workflow | пре 5 месеци | |
sql | пре 5 месеци | |
.gitignore | пре 11 месеци | |
README.md | пре 5 месеци | |
mvnw | пре 11 месеци | |
mvnw.cmd | пре 11 месеци | |
pom.xml | пре 5 месеци |
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
</dependency>
url后缀添加 compatibleMode=oracle
spring:
datasource:
driver-class-name: dm.jdbc.driver.DmDriver
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:dm://127.0.0.1:30236?compatibleMode=oracle
username: SYSDBA
password: SYSDBA001
id生成 | 实现 |
---|---|
自增ID | @KeySequence(value = "SEQ_MODEL_STRING_KEY", dbType = DbType.DM) |
雪花算法 | @TableId(type = IdType.ASSIGN_ID) |
在 com.flow.common.mybatis.configure.MybatisPlusConfigure文件中,修改为DbType.DM
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
// 分页插件
mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.DM));
return mybatisPlusInterceptor;
}
项目中的查询使用到mysql8的with recursive 递归查询,修改为CONNECT BY 递归查询
sql/dm.sql