From 009ca38182672d3872e6605d3308bf0dcfd577f6 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 8 Jul 2025 10:03:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=83=80=ED=8A=B8=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/launcher.sh | 2 +- src/main/resources/application-dev.yml | 59 +++++++++++++++++++++++++ src/main/resources/application-prod.yml | 59 +++++++++++++++++++++++++ src/main/resources/application.yml | 2 + 4 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/application-dev.yml create mode 100644 src/main/resources/application-prod.yml diff --git a/deploy/launcher.sh b/deploy/launcher.sh index b701a94..3a69d3f 100644 --- a/deploy/launcher.sh +++ b/deploy/launcher.sh @@ -40,7 +40,7 @@ case "$1" in { cd "$APP_HOME" || exit rm logs/*.log - nohup "$JAVA_HOME/bin/java" -Dspring.profiles.active=dev -jar "$APP_HOME/$APP_WAR" > /dev/null & + nohup "$JAVA_HOME/bin/java" -Dspring.profiles.active=prod -jar "$APP_HOME/$APP_WAR" > /dev/null & echo "$APP_NAME 프로세스가 시작되었습니다." } fi diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..0968989 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,59 @@ +server: + shutdown: graceful + port: 9078 + servlet: + context-path: / + + ssl: + enabled: false + key-alias: fimskeystore + key-store: classpath:ssl/fimskeystore.pkcs12 + key-store-password: 'Xit5811807@)@#' + key-password: 'Xit5811807@)@#' + trust-store: classpath:ssl/fimstrust.pkcs12 + trust-store-password: 'Xit5811807@)@#' + +# tomcat: +# remoteip: +# protocol-header-https-value: https + +spring: + application: + name: fims-chongno + main: + allow-bean-definition-overriding: true +# web-application-type: SERVLET + sql: + init: + platform: mariadb + datasource: + hikari: + fims: + driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/fims_chongno?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false + username: fimsweb + password: xit581!*)& + auto-commit: false + # 개발 환경에서만 활성화. 운영환경에서는 조정하거나 제거할 것 + maximumPoolSize: 3 + mvc: + static-path-pattern: /resources/**,/webjars/**,/files/** + web: + resources: + static-locations: /resources/,classpath:/META-INF/resources/webjars/,file:files/ + +messageSource: + basenames: + - classpath:message/message-common + - classpath:message/authentication-message + - classpath:org/egovframe/rte/fdl/property/messages/properties + +propertyService: + properties: + - tempDir: C:\temp + - pageUnit: 10 + - pageSize: 10 + - permitAccess: /intf/**/* + extFileName: + - encoding: UTF-8 + filename: classpath*:intf-conf/xit-lvis.properties diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 0000000..7e831e5 --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,59 @@ +server: + shutdown: graceful + port: 9078 + servlet: + context-path: / + + ssl: + enabled: false + key-alias: fimskeystore + key-store: classpath:ssl/fimskeystore.pkcs12 + key-store-password: 'Xit5811807@)@#' + key-password: 'Xit5811807@)@#' + trust-store: classpath:ssl/fimstrust.pkcs12 + trust-store-password: 'Xit5811807@)@#' + +# tomcat: +# remoteip: +# protocol-header-https-value: https + +spring: + application: + name: fims-chongno + main: + allow-bean-definition-overriding: true +# web-application-type: SERVLET + sql: + init: + platform: mariadb + datasource: + hikari: + fims: + driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbc-url: jdbc:log4jdbc:mariadb://98.1.1.94:53306/fims?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false + username: fimsweb + password: xit581!*)& + auto-commit: false + # 개발 환경에서만 활성화. 운영환경에서는 조정하거나 제거할 것 + maximumPoolSize: 3 + mvc: + static-path-pattern: /resources/**,/webjars/**,/files/** + web: + resources: + static-locations: /resources/,classpath:/META-INF/resources/webjars/,file:files/ + +messageSource: + basenames: + - classpath:message/message-common + - classpath:message/authentication-message + - classpath:org/egovframe/rte/fdl/property/messages/properties + +propertyService: + properties: + - tempDir: C:\temp + - pageUnit: 10 + - pageSize: 10 + - permitAccess: /intf/**/* + extFileName: + - encoding: UTF-8 + filename: classpath*:intf-conf/xit-lvis.properties diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 105344c..e8c898d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -20,6 +20,8 @@ server: spring: application: name: fims-chongno + profiles: + active: dev main: allow-bean-definition-overriding: true # web-application-type: SERVLET