From d45a7a9f60c9e33691d1885c37d81d248f512cda Mon Sep 17 00:00:00 2001 From: hylee Date: Tue, 18 Apr 2023 12:52:22 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20prod=20=ED=94=84=EB=A1=9C=ED=8D=BC?= =?UTF-8?q?=ED=8B=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/application-prod.properties | 15 +++++++++ src/main/resources/application.properties | 32 +++++++++---------- 2 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 src/main/resources/application-prod.properties diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..a4c95b6 --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,15 @@ + + +# DB INFO +#spring.datasource.driver-class-name=org.mariadb.jdbc.Driver +#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.url=jdbc:mysql://192.168.0.125:3306/mjon?serverTimezone=Asia/Seoul +spring.datasource.driverClassName=net.sf.log4jdbc.sql.jdbcapi.DriverSpy +spring.datasource.url=jdbc:log4jdbc:mysql://192.168.0.125:3306/mjon?serverTimezone=Asia/Seoul + +spring.datasource.username=mjonUr +spring.datasource.password=mjon!@#$ + + +server.port=9100 + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 65865d1..99f4e71 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,16 +1,16 @@ - - -spring.profiles.active=dev - - -# mybatis setting -mybatis.mapper-locations=classpath:mapper/**/*.xml -# model camel case set -mybatis.configuration.map-underscore-to-camel-case=true - -#sql \ucd9c\ub825 log \uc124\uc815 -logging.level.jdbc.sqlonly=off -logging.level.jdbc.sqltiming=info -logging.level.jdbc.audit=off -logging.level.jdbc.resultset=off -logging.level.jdbc.resultsettable=off + + +spring.profiles.active=dev + + +# mybatis setting +mybatis.mapper-locations=classpath:mapper/**/*.xml +# model camel case set +mybatis.configuration.map-underscore-to-camel-case=true + +#sql \ucd9c\ub825 log \uc124\uc815 +logging.level.jdbc.sqlonly=off +logging.level.jdbc.sqltiming=info +logging.level.jdbc.audit=off +logging.level.jdbc.resultset=off +logging.level.jdbc.resultsettable=off