فهرست منبع

upate stl validation local config

Adrian Viesca 8 سال پیش
والد
کامیت
2eb49f7d28
2فایلهای تغییر یافته به همراه23 افزوده شده و 21 حذف شده
  1. 19 21
      crss-settlement-task-validation/application-devlocal.yml
  2. 4 0
      crss-settlement-task-validation/application.yml

+ 19 - 21
crss-settlement-task-validation/application-devlocal.yml

@@ -5,14 +5,13 @@ spring:
       username: postgres
       password: postgres
       driverClassName: org.postgresql.Driver
-      maxPoolSize: 5
-      test-on-borrow: true
-      validation-query: SELECT 1
+      connectionTimeout: 10000
+      maxPoolSize: 20
   crss-registration:
     datasource:
-      jdbcUrl: jdbc:postgresql://localhost:5432/crss_reg
-      username: crss_reg
-      password: crss_reg
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss?currentSchema=registration
+      username: postgres
+      password: postgres
       driverClassName: org.postgresql.Driver
       maxPoolSize: 5
       test-on-borrow: true
@@ -24,52 +23,47 @@ spring:
       username: postgres
       password: postgres
       driverClassName: org.postgresql.Driver
-      maxPoolSize: 5
-      test-on-borrow: true
-      validation-query: SELECT 1
+      connectionTimeout: 10000
+      maxPoolSize: 20
   crss-main:
     datasource:
       jdbcUrl: jdbc:postgresql://localhost:5432/stl_crss_meterprocess
       username: postgres
       password: postgres
       driverClassName: org.postgresql.Driver
-      maxPoolSize: 5
-      test-on-borrow: true
-      validation-query: SELECT 1
+      connectionTimeout: 10000
+      maxPoolSize: 20
   crss-metering:
     datasource:
       jdbcUrl: jdbc:postgresql://localhost:5432/stl_crss_metering
       username: postgres
       password: postgres
       driverClassName: org.postgresql.Driver
-      maxPoolSize: 5
-      test-on-borrow: true
-      validation-query: SELECT 1
+      connectionTimeout: 10000
+      maxPoolSize: 20
   crss-nmms:
     datasource:
       jdbcUrl: jdbc:postgresql://localhost:5432/stl_crss_nmms
       username: postgres
       password: postgres
       driverClassName: org.postgresql.Driver
-      maxPoolSize: 5
-      test-on-borrow: true
-      validation-query: SELECT 1
+      connectionTimeout: 10000
+      maxPoolSize: 20
   crss-dataflow:
     datasource:
       jdbcUrl: jdbc:postgresql://localhost:5432/crss_dataflow
       username: postgres
       password: postgres
       driverClassName: org.postgresql.Driver
+      connectionTimeout: 10000
       maxPoolSize: 20
-      test-on-borrow: true
-      validation-query: SELECT 1
 
   jpa:
     show-sql: false
     generate-ddl: true
     properties:
       hibernate:
-        generate_statistics: false
+        generate_statistics: true
         dialect: org.hibernate.dialect.PostgreSQL81Dialect
         ddl-auto: validate
         hbm2ddl:
@@ -79,6 +73,10 @@ spring:
     job:
       enabled: true
 
+  redis:
+      host: localhost
+      port: 6379
+
 logging:
   level:
     com.pemc: DEBUG

+ 4 - 0
crss-settlement-task-validation/application.yml

@@ -73,6 +73,10 @@ spring:
     job:
       enabled: true
 
+  redis:
+      host: localhost
+      port: 6379
+
 logging:
   level:
     com.pemc: DEBUG