application context configuration fixed
This commit is contained in:
parent
b5565a958b
commit
6412316e2e
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -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/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">
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
|
||||||
|
|
||||||
<context:property-placeholder
|
<!-- <context:property-placeholder
|
||||||
location="
|
location="
|
||||||
classpath*:jdbc.testing.properties,
|
classpath*:jdbc.testing.properties,
|
||||||
classpath*:jdbc.logging.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" />
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
||||||
|
|
||||||
@ -33,7 +36,7 @@
|
|||||||
<property name="dataSourceClassName" value="org.postgresql.ds.PGSimpleDataSource" />
|
<property name="dataSourceClassName" value="org.postgresql.ds.PGSimpleDataSource" />
|
||||||
<property name="connectionTimeout" value="3000"></property> <!-- add by iwankasan -->
|
<property name="connectionTimeout" value="3000"></property> <!-- add by iwankasan -->
|
||||||
<property name="idleTimeout" value="90000" /> <!-- change 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">
|
<property name="dataSourceProperties">
|
||||||
<props>
|
<props>
|
||||||
<prop key="serverName">${jdbc.serverName}</prop>
|
<prop key="serverName">${jdbc.serverName}</prop>
|
||||||
@ -61,8 +64,8 @@
|
|||||||
<property name="jpaProperties">
|
<property name="jpaProperties">
|
||||||
<props>
|
<props>
|
||||||
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
|
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
|
||||||
<prop key="hibernate.format_sql">true</prop>
|
<prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
|
||||||
<prop key="hibernate.show_sql">true</prop>
|
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
|
||||||
<prop key="javax.persistence.validation.mode">none</prop>
|
<prop key="javax.persistence.validation.mode">none</prop>
|
||||||
<!-- Interceptor, alter by Syamsu -->
|
<!-- Interceptor, alter by Syamsu -->
|
||||||
<prop key="hibernate.ejb.interceptor">com.jasamedika.medifirst2000.logging.hibernate.interceptor.HibernateInterceptor
|
<prop key="hibernate.ejb.interceptor">com.jasamedika.medifirst2000.logging.hibernate.interceptor.HibernateInterceptor
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# DB Logging
|
# 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://localhost:3306/medifirst2000
|
||||||
jdbcLogging.url=jdbc:mysql://192.168.12.1:3306/rsab_hk_development
|
#jdbcLogging.url=jdbc:mysql://192.168.12.1:3306/rsab_hk_development
|
||||||
jdbcLogging.username=root
|
#jdbcLogging.username=root
|
||||||
jdbcLogging.password=
|
#jdbcLogging.password=
|
||||||
hibernate.hbm2ddl = update
|
#hibernate.hbm2ddl = update
|
||||||
|
|||||||
@ -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/
|
||||||
@ -1,10 +1,25 @@
|
|||||||
# DB Live
|
|
||||||
jdbc.driver = org.postgresql.Driver
|
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.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/
|
||||||
@ -1,14 +1,14 @@
|
|||||||
# DB Development
|
# 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.1:5432/rsab_hk_production
|
||||||
jdbc.url = jdbc:postgresql://192.168.12.4:5432/rsab_hk_development
|
#jdbc.url = jdbc:postgresql://192.168.12.4:5432/rsab_hk_development
|
||||||
jdbc.username = postgres
|
#jdbc.username = postgres
|
||||||
jdbc.password = root
|
#jdbc.password = root
|
||||||
jdbc.serverName = 192.168.12.4
|
#jdbc.serverName = 192.168.12.4
|
||||||
jdbc.databaseName = rsab_hk_development
|
#jdbc.databaseName = rsab_hk_development
|
||||||
jdbc.portNumber = 5432
|
#jdbc.portNumber = 5432
|
||||||
hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
|
#hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
|
||||||
hibernate.hbm2ddl = update
|
#hibernate.hbm2ddl = none
|
||||||
|
|
||||||
|
|
||||||
#jdbc.driver = com.mysql.jdbc.Driver
|
#jdbc.driver = com.mysql.jdbc.Driver
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>mirroring</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</context-param>
|
</context-param>
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>spring.profiles.default</param-name>
|
<param-name>spring.profiles.default</param-name>
|
||||||
<param-value>development</param-value>
|
<param-value>production</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user