diff --git a/src/main/java/cokr/xit/adds/ServletInitializer.java b/src/main/java/cokr/xit/adds/ServletInitializer.java new file mode 100644 index 0000000..79bc1b7 --- /dev/null +++ b/src/main/java/cokr/xit/adds/ServletInitializer.java @@ -0,0 +1,12 @@ +package cokr.xit.adds; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +public class ServletInitializer extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(XitBootApplication.class); + } +} diff --git a/src/main/java/cokr/xit/adds/XitBootApplication.java b/src/main/java/cokr/xit/adds/XitBootApplication.java index 1fe14ea..5a23d3c 100644 --- a/src/main/java/cokr/xit/adds/XitBootApplication.java +++ b/src/main/java/cokr/xit/adds/XitBootApplication.java @@ -7,6 +7,7 @@ import org.springframework.boot.context.ApplicationPidFileWriter; import cokr.xit.base.boot.XitBaseApplication; + public class XitBootApplication extends XitBaseApplication { public static void main(String[] args) { diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 28a3623..cd89c6e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -90,13 +90,13 @@ propertyService: app: api: #host: http://211.119.124.9:9076 - host: 'http://localhost:9076' + host: 'http://localhost:8098' --- spring: config: activate: - on-profile: prod + on-profile: dev datasource: hikari: @@ -119,3 +119,31 @@ app: data: root: path: /data/adds + +--- +spring: + config: + activate: + on-profile: prod + + datasource: + hikari: + driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy + jdbc-url: jdbc:log4jdbc:mariadb://105.19.10.69:4407/adds?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false + username: addsweb + password: addsweb1234 + auto-commit: false + +server: + port: 8081 + +propertyService: + properties: + - defaultPassword: 0 + +app: + api: + host: http://105.19.10.69:8098 + data: + root: + path: /data/adds