부트 설정 추가
parent
16b7b0fa53
commit
6bf684fbbc
@ -0,0 +1,37 @@
|
|||||||
|
server:
|
||||||
|
servlet:
|
||||||
|
context-path: /fims
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: fims
|
||||||
|
|
||||||
|
main:
|
||||||
|
allow-bean-definition-overriding: true
|
||||||
|
|
||||||
|
sql:
|
||||||
|
init:
|
||||||
|
platform: mariadb
|
||||||
|
|
||||||
|
datasource:
|
||||||
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
|
url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false
|
||||||
|
username: fimsweb
|
||||||
|
password: fimsweb!@
|
||||||
|
|
||||||
|
messageSource:
|
||||||
|
basenames:
|
||||||
|
- classpath:message/message-common
|
||||||
|
- classpath:message/authentication-message
|
||||||
|
- classpath:org/egovframe/rte/fdl/property/messages/properties
|
||||||
|
|
||||||
|
propertyService:
|
||||||
|
properties:
|
||||||
|
- tempDir: C:\temp
|
||||||
|
- pageUnit: 10
|
||||||
|
- pageSize: 10
|
||||||
|
# extFileName:
|
||||||
|
# - encoding: UTF-8
|
||||||
|
# filename: classpath*:properties/your-file-01.properties
|
||||||
|
# - encoding: UTF-8
|
||||||
|
# filename: classpath*:properties/your-file-02.properties
|
@ -1,44 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE Configuration>
|
|
||||||
<Configuration>
|
|
||||||
<Appenders>
|
|
||||||
<Console name="console" target="SYSTEM_OUT">
|
|
||||||
<PatternLayout pattern="%d{HH:mm:ss,SSS} %5p [%c{1}] %m%n" />
|
|
||||||
</Console>
|
|
||||||
<RollingFile name="file" fileName="./logs/xit-app.log" filePattern="./logs/xit-app.%d{yy-MM-dd}.log" append="false">
|
|
||||||
<PatternLayout pattern="%d{HH:mm:ss,SSS} %5p [%c{1}] %m%n"/>
|
|
||||||
<Policies>
|
|
||||||
<TimeBasedTriggeringPolicy interval="1" modulate="true"/>
|
|
||||||
</Policies>
|
|
||||||
</RollingFile>
|
|
||||||
</Appenders>
|
|
||||||
|
|
||||||
<Loggers>
|
|
||||||
<Logger name="org.springframework" level="INFO" additivity="false">
|
|
||||||
<AppenderRef ref="console" />
|
|
||||||
<AppenderRef ref="file" />
|
|
||||||
</Logger>
|
|
||||||
<Logger name="org.egovframe" level="INFO" additivity="false">
|
|
||||||
<AppenderRef ref="console" />
|
|
||||||
<AppenderRef ref="file" />
|
|
||||||
</Logger>
|
|
||||||
<Logger name="cokr.xit" level="DEBUG" additivity="false">
|
|
||||||
<AppenderRef ref="console" />
|
|
||||||
<AppenderRef ref="file" />
|
|
||||||
</Logger>
|
|
||||||
|
|
||||||
<!-- log SQL with timing information, post execution -->
|
|
||||||
<Logger name="jdbc.audit" level="OFF" />
|
|
||||||
<Logger name="jdbc.sqlonly" level="OFF" />
|
|
||||||
<Logger name="jdbc.resultset" level="OFF" />
|
|
||||||
<Logger name="jdbc.resultsettable" level="OFF" />
|
|
||||||
<Logger name="jdbc.sqltiming" level="DEBUG" additivity="false">
|
|
||||||
<AppenderRef ref="console" />
|
|
||||||
</Logger>
|
|
||||||
|
|
||||||
<Root level="DEBUG">
|
|
||||||
<AppenderRef ref="console" />
|
|
||||||
<AppenderRef ref="file" />
|
|
||||||
</Root>
|
|
||||||
</Loggers>
|
|
||||||
</Configuration>
|
|
@ -0,0 +1,81 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-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="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"/>
|
||||||
|
|
||||||
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||||
|
<pattern>${LOG_PATTERN}</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<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_NAME}.%d{yyyy-MM-dd}_%i.log</fileNamePattern>
|
||||||
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||||
|
<maxFileSize>10MB</maxFileSize>
|
||||||
|
</timeBasedFileNamingAndTriggeringPolicy>
|
||||||
|
|
||||||
|
<maxHistory>30</maxHistory><!-- 로그파일 보관주기(일)-->
|
||||||
|
<!--<MinIndex>1</MinIndex>
|
||||||
|
<MaxIndex>10</MaxIndex>-->
|
||||||
|
</rollingPolicy>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="Error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||||
|
<level>error</level>
|
||||||
|
<onMatch>ACCEPT</onMatch>
|
||||||
|
<onMismatch>DENY</onMismatch>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<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}/${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>
|
||||||
|
</timeBasedFileNamingAndTriggeringPolicy>
|
||||||
|
<!-- 일자별 로그파일 최대 보관주기(~일), 해당 설정일 이상된 파일은 자동으로 제거-->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="DEBUG" additivity="false">
|
||||||
|
<appender-ref ref="CONSOLE"/>
|
||||||
|
<appender-ref ref="FILE"/>
|
||||||
|
<appender-ref ref="Error"/>
|
||||||
|
</root>
|
||||||
|
|
||||||
|
<logger name="jdbc" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.sqltiming" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.resultsettable" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.sqlonly" level="OFF"/>
|
||||||
|
<logger name="jdbc.resultset" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.connection" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.audit" level="OFF" additivity="false"/>
|
||||||
|
<logger name="org.apache.commons" level="OFF" additivity="false"/>
|
||||||
|
|
||||||
|
<!-- 특정패키지 로깅레벨 설정 -->
|
||||||
|
<logger name="cokr.xit" level="DEBUG" additivity="false">
|
||||||
|
<appender-ref ref="CONSOLE"/>
|
||||||
|
<appender-ref ref="FILE"/>
|
||||||
|
<appender-ref ref="Error"/>
|
||||||
|
</logger>
|
||||||
|
|
||||||
|
</configuration>
|
@ -1,2 +0,0 @@
|
|||||||
# see https://projectlombok.org/features/constructor lombok.copyableAnnotations
|
|
||||||
lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier
|
|
Loading…
Reference in New Issue