mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
✅ Adding tests. pom 支持多数据库切换
This commit is contained in:
1 parent
d4b75b0fd2
commit
f4c9545366
5 files changed
+29
-4
No files matched your search
@@ -38,6 +38,16 @@
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<!-- ojdbc8 -->
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
</dependency>
|
||||
<!--PG-->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
<!--upms api、model 模块-->
|
||||
<dependency>
|
||||
<groupId>com.pig4cloud</groupId>
|
||||
|
||||
@@ -13,5 +13,6 @@ spring:
|
||||
file-extension: yml
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: @db.type@
|
||||
profiles:
|
||||
active: @profiles.active@
|
||||
@@ -44,6 +44,11 @@
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<!-- ojdbc8 -->
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
</dependency>
|
||||
<!-- druid 连接池 -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
@@ -101,4 +106,4 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
</project>
|
||||
@@ -13,5 +13,6 @@ spring:
|
||||
file-extension: yml
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: @db.type@
|
||||
profiles:
|
||||
active: @profiles.active@
|
||||
@@ -33,7 +33,7 @@
|
||||
</organization>
|
||||
|
||||
<properties>
|
||||
<spring-boot.version>2.5.7</spring-boot.version>
|
||||
<spring-boot.version>2.5.8</spring-boot.version>
|
||||
<spring-cloud.version>2020.0.4</spring-cloud.version>
|
||||
<spring-cloud-alibaba.version>2021.1</spring-cloud-alibaba.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
@@ -282,9 +282,17 @@
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>test</id>
|
||||
<id>oracle</id>
|
||||
<properties>
|
||||
<profiles.active>test</profiles.active>
|
||||
<profiles.active>dev</profiles.active>
|
||||
<db.type>oracle</db.type>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>pg</id>
|
||||
<properties>
|
||||
<profiles.active>dev</profiles.active>
|
||||
<db.type>pg</db.type>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
||||
Reference in new issue
Block a user