浏览代码

Add postgres and jpa config to global since we're using postgres

Monte Cillo Co 8 年之前
父节点
当前提交
bc1c5943e9
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      application.yml

+ 10 - 0
application.yml

@@ -6,6 +6,16 @@ spring:
     show-sql: false
     hibernate:
       ddl-auto: none
+      dialect: org.hibernate.dialect.PostgreSQLDialect
+      hbm2ddl:
+        import_files:
+  datasource:
+    platform : postgres
+    driverClassName: org.postgresql.Driver
+    connectionTimeout: 10000
+    maxPoolSize: 20
+    test-on-borrow: true
+    validation-query: SELECT 1
 
 security:
   oauth2: