build: rollback

dev
Jonguk. Lim 5 months ago
parent fd40fa86a1
commit ec1c1adae5

@ -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);
}
}

@ -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/

@ -2,8 +2,8 @@
<!-- 60초마다 설정 파일의 변경을 확인 하여 변경시 갱신 -->
<configuration scan="true" scanPeriod="60 seconds">
<springProperty scope="context" name="applicationName" source="spring.application.name"/>
<!-- <property name="LOG_PATH" value="logs"/>-->
<!-- <property name="LOG_FILE_NAME" value="${applicationName}"/>-->
<property name="LOG_PATH" value="logs"/>
<property name="LOG_FILE_NAME" value="${applicationName}"/>
<property name="ERR_LOG_FILE_NAME" value="${LOG_FILE_NAME}-error"/>
<property name="LOG_PATTERN" value="%d{HH:mm:ss.SSS} %-5level [%logger{0}:%line] - %msg%n"/>
@ -14,14 +14,14 @@
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_PATH}/${LOG_FILE}.log</file>
<file>${LOG_PATH}/${LOG_FILE_NAME}.log</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- .gz,.zip 등을 넣으면 자동 일자별 로그파일 압축 -->
<fileNamePattern>${LOG_PATH}/${LOG_FILE}.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<fileNamePattern>${LOG_PATH}/${LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
@ -39,14 +39,14 @@
<onMismatch>DENY</onMismatch>
</filter>
<file>${LOG_PATH}/${LOG_FILE}-error.log</file>
<file>${LOG_PATH}/${ERR_LOG_FILE_NAME}.log</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- .gz,.zip 등을 넣으면 자동 일자별 로그파일 압축 -->
<fileNamePattern>${LOG_PATH}/${LOG_FILE}-error.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<fileNamePattern>${LOG_PATH}/${ERR_LOG_FILE_NAME}.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- 파일당 최고 용량 kb, mb, gb -->
<maxFileSize>10MB</maxFileSize>
@ -81,4 +81,4 @@
<appender-ref ref="Error"/>
</logger>
</configuration>
</configuration>
Loading…
Cancel
Save