application context configuration fixed

This commit is contained in:
salmanoe 2021-01-07 20:15:05 +07:00
parent b5565a958b
commit 6412316e2e
14 changed files with 79 additions and 36 deletions

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -9,11 +9,14 @@
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
<context:property-placeholder
<!-- <context:property-placeholder
location="
classpath*:jdbc.testing.properties,
classpath*:jdbc.logging.properties,
classpath*:jdbc.${spring.profiles.default}.properties" />
classpath*:jdbc.${spring.profiles.default}.properties" /> -->
<context:property-placeholder
location="classpath*:jdbc.${spring.profiles.default}.properties" />
<tx:annotation-driven transaction-manager="transactionManager" />
@ -33,7 +36,7 @@
<property name="dataSourceClassName" value="org.postgresql.ds.PGSimpleDataSource" />
<property name="connectionTimeout" value="3000"></property> <!-- add by iwankasan -->
<property name="idleTimeout" value="90000" /> <!-- change by iwankasan -->
<property name="maximumPoolSize" value="5" /> <!-- add by iwankasan -->
<property name="maximumPoolSize" value="${hikari.config.maximum.pool.size}" /> <!-- add by iwankasan -->
<property name="dataSourceProperties">
<props>
<prop key="serverName">${jdbc.serverName}</prop>
@ -61,8 +64,8 @@
<property name="jpaProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="javax.persistence.validation.mode">none</prop>
<!-- Interceptor, alter by Syamsu -->
<prop key="hibernate.ejb.interceptor">com.jasamedika.medifirst2000.logging.hibernate.interceptor.HibernateInterceptor

View File

@ -1,7 +1,7 @@
# DB Logging
jdbcLogging.driver=com.mysql.jdbc.Driver
#jdbcLogging.driver=com.mysql.jdbc.Driver
#jdbcLogging.url=jdbc:mysql://localhost:3306/medifirst2000
jdbcLogging.url=jdbc:mysql://192.168.12.1:3306/rsab_hk_development
jdbcLogging.username=root
jdbcLogging.password=
hibernate.hbm2ddl = update
#jdbcLogging.url=jdbc:mysql://192.168.12.1:3306/rsab_hk_development
#jdbcLogging.username=root
#jdbcLogging.password=
#hibernate.hbm2ddl = update

View File

@ -0,0 +1,25 @@
jdbc.driver = org.postgresql.Driver
hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.hbm2ddl = none
hibernate.format_sql = false
hibernate.show_sql = false
hikari.config.maximum.pool.size = 100
# DB Mirroring
jdbc.url = jdbc:postgresql://ds.rsabhk.lan:5432/rsab_hk_production
jdbc.username = postgres
jdbc.password = root
jdbc.serverName = ds.rsabhk.lan
jdbc.databaseName = rsab_hk_production
jdbc.portNumber = 5432
corePoolSizeAsyncConfigurer = 50
maxPoolSizeAsyncConfigurer = 100
presensiCapturePath=//mnt//images//
reportDirectory=/home/svradmin/app-back/uploadfile/
urlServiceSarPras=http://localhost:8888/jasamedika-web/
urlService=http://192.168.12.2/simrs_harkit/service/transaksi/

View File

@ -1,10 +1,25 @@
# DB Live
jdbc.driver = org.postgresql.Driver
jdbc.url = jdbc:postgresql://localhost:5432/Medifirst2000
jdbc.username = postgres
jdbc.password = adminpostgree
jdbc.serverName = localhost
jdbc.databaseName = Medifirst2000
jdbc.portNumber = 5432
hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.hbm2ddl = none
hibernate.hbm2ddl = none
hibernate.format_sql = false
hibernate.show_sql = false
hikari.config.maximum.pool.size = 120
# DB Production
jdbc.url = jdbc:postgresql://192.168.12.1:5432/rsab_hk_production
jdbc.username = postgres
jdbc.password = root
jdbc.serverName = 192.168.12.1
jdbc.databaseName = rsab_hk_production
jdbc.portNumber = 5432
corePoolSizeAsyncConfigurer = 50
maxPoolSizeAsyncConfigurer = 100
presensiCapturePath=//mnt//images//
reportDirectory=/home/svradmin/app-back/uploadfile/
urlServiceSarPras=http://localhost:8888/jasamedika-web/
urlService=http://192.168.12.2/simrs_harkit/service/transaksi/

View File

@ -1,14 +1,14 @@
# DB Development
jdbc.driver = org.postgresql.Driver
#jdbc.driver = org.postgresql.Driver
#jdbc.url = jdbc:postgresql://192.168.12.1:5432/rsab_hk_production
jdbc.url = jdbc:postgresql://192.168.12.4:5432/rsab_hk_development
jdbc.username = postgres
jdbc.password = root
jdbc.serverName = 192.168.12.4
jdbc.databaseName = rsab_hk_development
jdbc.portNumber = 5432
hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.hbm2ddl = update
#jdbc.url = jdbc:postgresql://192.168.12.4:5432/rsab_hk_development
#jdbc.username = postgres
#jdbc.password = root
#jdbc.serverName = 192.168.12.4
#jdbc.databaseName = rsab_hk_development
#jdbc.portNumber = 5432
#hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
#hibernate.hbm2ddl = none
#jdbc.driver = com.mysql.jdbc.Driver

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>mirroring</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>

View File

@ -15,7 +15,7 @@
</context-param>
<context-param>
<param-name>spring.profiles.default</param-name>
<param-value>development</param-value>
<param-value>production</param-value>
</context-param>
<listener>