#支持各种数据库类型

This commit is contained in:
ycl
2025-10-29 14:56:28 +08:00
parent 0b841c0d01
commit 5133092424

View File

@@ -8,7 +8,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.18</version>
<relativePath />
<relativePath/>
</parent>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}</artifactId>
@@ -246,17 +246,12 @@
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.7</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.3</version>
</dependency>
{{- if eq .dbType "dm" }}
{{- if eq .dbType "dm" }}
<dependency>
<groupId>dm</groupId>
<artifactId>DmJdbcDriver</artifactId>
@@ -267,6 +262,24 @@
<artifactId>DmDialect-for-hibernate5.6</artifactId>
<version>8.1.3.140</version>
</dependency>
{{- else if eq .dbType "mysql" }}
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
</dependency>
{{- else if eq .dbType "postgresql" }}
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.6.2</version>
</dependency>
{{- else if eq .dbType "oracle" }}
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>12.2.0.1</version>
</dependency>
{{- end }}
</dependencies>
<build>