From e50e34e35292564c7cd22d94f3b1a3d39545eb14 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 25 Jun 2024 09:05:06 +0900 Subject: [PATCH] =?UTF-8?q?build:=20=EC=9A=A9=EC=9D=B8=EC=8B=9C=20?= =?UTF-8?q?=EB=A7=88=EC=95=BD=EB=A5=98=20=EC=8B=9C=EC=8A=A4=ED=85=9C=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=84=A4=EC=A0=95=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 46 ++++++++++++++++++- .../resources/config/application-nims.yml | 11 +++++ 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a5a9391..c815696 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -168,7 +168,7 @@ app: spring: config: activate: - on-profile: prod + on-profile: dev datasource: hikari: driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy #org.mariadb.jdbc.Driver @@ -198,7 +198,7 @@ app: url: 'http://211.119.124.9:${server.port}${server.servlet.context-path:}/' desc: 사고마약류폐기지원시스템 cors: - allowed-origins: http://localhost:9077, http://localhost:8081 + allowed-origins: http://localhost:9077, http://localhost:8081, http://211.119.124.73:9077 log: parameter-enabled: true response-enabled: true @@ -212,3 +212,45 @@ app: # csrf: # enabled: false +--- +spring: + config: + activate: + on-profile: prod + datasource: + hikari: + driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy #org.mariadb.jdbc.Driver + #driver-class-name: org.mariadb.jdbc.Driver + jdbc-url: jdbc:mariadb://105.19.10.69:4407/egov?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&autoReconnect=true + # jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/adds?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&autoReconnect=true + # username: addsweb + # password: addsweb1234 + #jdbc-url: ENC(O26qFSqrfqMEjEU6jHUqrboYIPpTnwDIHIYQg2ddL0k7VsGvDbAMd/SwDeXjan17CykVLz3Qe++xW+VqxvQpT7/+Kxhl2ry1hTElOPxRHp6OrN/8GyhaScLCcBZgpxNcEAZ3a5qWJKIyLR/+KFk6YpW77lD10jFJvscNNYvFoWQIs/K5eAa/m3JnktX9Ed2RN8ttGgBET5g=) + username: ENC(M4g3XkH/bzupKW2w4WYH3Q==) + password: ENC(fzV0zekJQ7t/QHiz75k+xqdsDUWW6+MY) + auto-commit: false + +server: + shutdown: graceful + port: 8098 + +logging: + level: + root: info + web: debug + cokr.xit: debug + +app: + data: + root: + path: /data/adds + file: + path: ${app.data.root.path}/files/ + swagger: + url: 'http://105.19.10.69:${server.port}${server.servlet.context-path:}/' + desc: 사고마약류폐기지원시스템 + cors: + allowed-origins: http://localhost:8081,http://105.19.10.69:8081 + log: + parameter-enabled: true + response-enabled: true diff --git a/src/main/resources/config/application-nims.yml b/src/main/resources/config/application-nims.yml index 8493a56..f4540b9 100644 --- a/src/main/resources/config/application-nims.yml +++ b/src/main/resources/config/application-nims.yml @@ -25,6 +25,17 @@ app: nims: url: https://www.nims.or.kr +--- +spring: + config: + activate: + on-profile: dev + +app: + inf: + nims: + url: https://www.nims.or.kr + --- spring: config: