From: Tang Cheng Date: Tue, 9 Apr 2019 05:17:13 +0000 (+0800) Subject: 增加数据库配置 X-Git-Tag: 1.0.0^2~322 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4a687b96d965241049a830d2645a2aab8e623e73;p=epayment%2Ffood_payapi.git 增加数据库配置 --- diff --git a/config/application-devel-oracle.properties b/config/application-devel-oracle.properties new file mode 100644 index 00000000..fbfa731b --- /dev/null +++ b/config/application-devel-oracle.properties @@ -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 index 00000000..c092cced --- /dev/null +++ b/config/application-devel-pg.properties @@ -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