diff --git a/src/main/java/cokr/xit/adds/XitBootApplication.java b/src/main/java/cokr/xit/adds/XitBootApplication.java index 030eb52..8e719f8 100644 --- a/src/main/java/cokr/xit/adds/XitBootApplication.java +++ b/src/main/java/cokr/xit/adds/XitBootApplication.java @@ -1,22 +1,19 @@ package cokr.xit.adds; -import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; -import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.context.ApplicationPidFileWriter; import cokr.xit.base.boot.XitBaseApplication; public class XitBootApplication extends XitBaseApplication { public static void main(String[] args) { - //SpringApplication.run(XitBootApplication.class, args); + SpringApplication.run(XitBootApplication.class, args); - final SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(XitBootApplication.class); - final SpringApplication application = applicationBuilder.build(); - application.setBannerMode(Banner.Mode.OFF); - application.setLogStartupInfo(false); - - application.addListeners(new ApplicationPidFileWriter( "adds-fo.pid")); - application.run(args); + // final SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(XitBootApplication.class); + // final SpringApplication application = applicationBuilder.build(); + // application.setBannerMode(Banner.Mode.OFF); + // application.setLogStartupInfo(false); + // + // application.addListeners(new ApplicationPidFileWriter( "adds-fo.pid")); + // application.run(args); } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 28a3623..210e094 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -44,7 +44,7 @@ messageSource: propertyService: properties: - - tempDir: ${app.data.root.path}/temp + - tempDir: ${user.home}/temp - pageUnit: 10 - pageSize: 10 # 테스트를 위해 permitAccess 설정 @@ -58,17 +58,9 @@ propertyService: # filename: classpath*:properties/your-file-02.properties app: - data: - root: - path: ${user.home}/data/adds file: root: - path: ${app.data.root.path}/files/ - -logging: - file: - path: ${app.data.root.path}/logs - name: ${spring.application.name} + path: ${user.home}/data/adds/files/ --- spring: config: @@ -111,11 +103,12 @@ server: propertyService: properties: + - tempDir: /data/adds/temp - defaultPassword: 0 app: api: host: http://211.119.124.9:9076 - data: + file: root: - path: /data/adds + path: /data/adds/files/ diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index bcf8f11..fd7a1c5 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -2,8 +2,8 @@ - - + + @@ -14,14 +14,14 @@ - ${LOG_PATH}/${LOG_FILE}.log + ${LOG_PATH}/${LOG_FILE_NAME}.log ${LOG_PATTERN} - ${LOG_PATH}/${LOG_FILE}.%d{yyyy-MM-dd}_%i.log + ${LOG_PATH}/${LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log 10MB @@ -39,14 +39,14 @@ DENY - ${LOG_PATH}/${LOG_FILE}-error.log + ${LOG_PATH}/${ERR_LOG_FILE_NAME}.log ${LOG_PATTERN} - ${LOG_PATH}/${LOG_FILE}-error.%d{yyyy-MM-dd}_%i.log + ${LOG_PATH}/${ERR_LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log 10MB @@ -81,4 +81,4 @@ - + \ No newline at end of file