diff --git a/src/main/resources/dev/application.properties b/src/main/resources/dev/application.properties new file mode 100644 index 0000000..1f4758f --- /dev/null +++ b/src/main/resources/dev/application.properties @@ -0,0 +1,23 @@ +spring.profiles.active=dev +spring.application.name=bibimbap + +# ViewResolver +spring.mvc.view.prefix=/WEB-INF/views/ +spring.mvc.view.suffix=.jsp + +# common +spring.config.import=classpath:db.properties, classpath:common.properties + +# IP +server.address=0.0.0.0 + +# encoding +server.servlet.encoding.force-response=true + +# file upload Max Size +spring.servlet.multipart.max-file-size=100MB +spring.servlet.multipart.max-request-size=100MB + +# log +mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl +logging.level.org.apache.ibatis=TRACE diff --git a/src/main/resources/dev/db.properties b/src/main/resources/dev/db.properties new file mode 100644 index 0000000..28dbdc1 --- /dev/null +++ b/src/main/resources/dev/db.properties @@ -0,0 +1,4 @@ +spring.datasource.driver-class-name=org.postgresql.Driver +spring.datasource.url=jdbc:postgresql://192.168.1.3:5432/bibimbap?currentSchema=dev +spring.datasource.username=bibimbap +spring.datasource.password=c895UxtsMJPaTWS0 diff --git a/src/main/resources/live/application.properties b/src/main/resources/live/application.properties new file mode 100644 index 0000000..1f4758f --- /dev/null +++ b/src/main/resources/live/application.properties @@ -0,0 +1,23 @@ +spring.profiles.active=dev +spring.application.name=bibimbap + +# ViewResolver +spring.mvc.view.prefix=/WEB-INF/views/ +spring.mvc.view.suffix=.jsp + +# common +spring.config.import=classpath:db.properties, classpath:common.properties + +# IP +server.address=0.0.0.0 + +# encoding +server.servlet.encoding.force-response=true + +# file upload Max Size +spring.servlet.multipart.max-file-size=100MB +spring.servlet.multipart.max-request-size=100MB + +# log +mybatis.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl +logging.level.org.apache.ibatis=TRACE diff --git a/src/main/resources/live/db.properties b/src/main/resources/live/db.properties new file mode 100644 index 0000000..190aa2a --- /dev/null +++ b/src/main/resources/live/db.properties @@ -0,0 +1,4 @@ +spring.datasource.driver-class-name=org.postgresql.Driver +spring.datasource.url=jdbc:postgresql://192.168.1.3:5432/bibimbap?currentSchema=live +spring.datasource.username=bibimbap +spring.datasource.password=c895UxtsMJPaTWS0 \ No newline at end of file