Update system properties

master
Rajitha Kumara 1 year ago
parent 7e843519d5
commit 2b6de6ce3a

@ -3,17 +3,26 @@ value_port='8081'
value_db_url='jdbc:mysql://localhost:3306/EN_MI'
value_db_username='root'
value_db_password='root'
value_hikari_maximum_pool_size='10' #default value 10
value_tomcat_maximum_thread_pool_size='200' #default value 200
value_tomcat_connection_timeout='60000' #default value 60s (=60000)
property_port='--server.port='
property_db_url='--spring.datasource.url='
property_db_username='--spring.datasource.username='
property_db_password='--spring.datasource.password='
property_log_path='--logging.file.path='
property_hikari_maximum_pool_size='--spring.datasource.hikari.maximum-pool-size='
property_tomcat_maximum_thread_pool_size='--server.tomcat.threads.max='
property_tomcat_connection_timeout='--server.tomcat.connection-timeout='
configs=($property_port$value_port \
$property_db_url$value_db_url \
$property_db_username$value_db_username \
$property_db_password$value_db_password)
$property_db_password$value_db_password \
$property_hikari_maximum_pool_size$value_hikari_maximum_pool_size \
$property_tomcat_maximum_thread_pool_size$value_tomcat_maximum_thread_pool_size \
$property_tomcat_connection_timeout$value_tomcat_connection_timeout)
for config in "${configs[@]}"; do
config_str="${config_str} ${config}"

@ -6,4 +6,7 @@ spring.datasource.username=root
spring.datasource.password=root
spring.jackson.property-naming-strategy=SNAKE_CASE
logging.file.name=../logs/validator.log
spring.logging.file.max-history=5
spring.logging.file.max-history=5
spring.datasource.hikari.maximum-pool-size=10
server.tomcat.threads.max=200
server.tomcat.connection-timeout=60000
Loading…
Cancel
Save