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: