增加数据库配置
authorTang Cheng <cheng.tang@supwisdom.com>
Tue, 9 Apr 2019 05:17:13 +0000 (13:17 +0800)
committerTang Cheng <cheng.tang@supwisdom.com>
Tue, 9 Apr 2019 05:17:13 +0000 (13:17 +0800)
config/application-devel-oracle.properties [new file with mode: 0644]
config/application-devel-pg.properties [new file with mode: 0644]

diff --git a/config/application-devel-oracle.properties b/config/application-devel-oracle.properties
new file mode 100644 (file)
index 0000000..fbfa731
--- /dev/null
@@ -0,0 +1,10 @@
+spring.main.banner-mode=off
+
+# create and drop tables and sequences, loads import.sql
+spring.jpa.hibernate.ddl-auto=create-drop
+
+# Oracle settings
+spring.datasource.url=jdbc:oracle:thin:@172.28.201.101:47922:orcl
+spring.datasource.username=ecardtest
+spring.datasource.password=kingstar
+spring.datasource.driver-class-oracle.jdbc.driver.OracleDriver
\ No newline at end of file
diff --git a/config/application-devel-pg.properties b/config/application-devel-pg.properties
new file mode 100644 (file)
index 0000000..c092cce
--- /dev/null
@@ -0,0 +1,10 @@
+spring.main.banner-mode=off
+
+# create and drop tables and sequences, loads import.sql
+spring.jpa.hibernate.ddl-auto=create-drop
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
+
+# Oracle settings
+spring.datasource.url=jdbc:postgresql://172.28.201.101:5432/dlpay
+spring.datasource.username=payapi
+spring.datasource.password=123456