|
|
пре 11 месеци | |
|---|---|---|
| flow-app | пре 11 месеци | |
| flow-common | пре 11 месеци | |
| flow-file | пре 1 година | |
| flow-im | пре 1 година | |
| flow-oauth | пре 1 година | |
| flow-report | пре 1 година | |
| flow-system | пре 1 година | |
| flow-workflow | пре 11 месеци | |
| sql | пре 11 месеци | |
| .gitignore | пре 1 година | |
| README.md | пре 11 месеци | |
| mvnw | пре 1 година | |
| mvnw.cmd | пре 1 година | |
| pom.xml | пре 11 месеци |
<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