xit-lvis 테스트 (spring boot) 애플리케이션으로 변환
parent
767f4fb026
commit
e68be9962e
@ -0,0 +1,23 @@
|
|||||||
|
package cokr.xit.interfaces.lvis.test;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
|
||||||
|
import cokr.xit.foundation.boot.FoundationApplication;
|
||||||
|
import io.swagger.v3.oas.models.OpenAPI;
|
||||||
|
import io.swagger.v3.oas.models.info.Info;
|
||||||
|
|
||||||
|
//@ImportResource("classpath:spring/context-*.xml")
|
||||||
|
public class LvisTestApplication extends FoundationApplication {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(LvisTestApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public OpenAPI openAPI() {
|
||||||
|
return new OpenAPI()
|
||||||
|
.info(new Info()
|
||||||
|
.title("외부 연계 테스트")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
server:
|
||||||
|
port: 18080
|
||||||
|
servlet:
|
||||||
|
context-path: /
|
||||||
|
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: lvis-test
|
||||||
|
|
||||||
|
main:
|
||||||
|
allow-bean-definition-overriding: true
|
||||||
|
sql:
|
||||||
|
init:
|
||||||
|
platform: mariadb
|
||||||
|
|
||||||
|
datasource:
|
||||||
|
hikari:
|
||||||
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
|
jdbc-url: jdbc:log4jdbc:mariadb://105.19.10.99:53306/electricparking?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false
|
||||||
|
username: root
|
||||||
|
password: xit5811807
|
||||||
|
# jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false
|
||||||
|
# username: fimsweb
|
||||||
|
# password: fimsweb!@
|
||||||
|
auto-commit: false
|
||||||
|
|
||||||
|
mvc:
|
||||||
|
static-path-pattern: /resources/**,/files/**
|
||||||
|
web:
|
||||||
|
resources:
|
||||||
|
static-locations: /resources/,file:files/
|
||||||
|
|
||||||
|
messageSource:
|
||||||
|
basenames:
|
||||||
|
- classpath:message/message-common
|
||||||
|
- classpath:org/egovframe/rte/fdl/property/messages/properties
|
||||||
|
|
||||||
|
propertyService:
|
||||||
|
properties:
|
||||||
|
- tempDir: C:\temp
|
||||||
|
- pageUnit: 10
|
||||||
|
- pageSize: 10
|
||||||
|
- permitAccess: /intf/**/*
|
||||||
|
extFileName:
|
||||||
|
- encoding: UTF-8
|
||||||
|
filename: classpath*:intf-conf/xit-lvis.properties
|
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"license": "C:\\GPKI\\Lic", /* 이용기관 GPKI API 라이센스 디렉토리 */
|
||||||
|
|
||||||
|
"charset": "UTF-8", /* 문자셋 */
|
||||||
|
|
||||||
|
"server": {
|
||||||
|
"local": "SVR4050545002", /* 이용기관(용인, ep_yi) 서버 CN */
|
||||||
|
"targets": "SVR1500000015" /* 대상기관 서버인증서 아이디, 여러 개일 경우 컴마(,)로 구분 */
|
||||||
|
},
|
||||||
|
|
||||||
|
"ldapUrl": "ldap://10.1.7.118:389/cn=", /* 대상기관 인증서 다운로드를 위한 행정망 LDAP URL */
|
||||||
|
/*"ldapUrl": "ldap://152.99.57.127:389/cn=", 대상기관 인증서 다운로드를 위한 인터넷망 LDAP URL */
|
||||||
|
"certDir": "C:\\GPKI\\Certificate\\class1", /* 서버 인증서, 키 저장 디렉토리 */
|
||||||
|
|
||||||
|
"env": { /* 이용기관 서버 인증서 */
|
||||||
|
"certFile": "SVR4050545002_env.cer",
|
||||||
|
"privateKeyFile": "SVR4050545002_env.key",
|
||||||
|
"privateKeyPassword": "rlgneorl3395!"
|
||||||
|
},
|
||||||
|
"sig": { /* 이용기관 서버 전자서명 */
|
||||||
|
"certFile": "SVR4050545002_sig.cer",
|
||||||
|
"privateKeyFile": "SVR4050545002_sig.key",
|
||||||
|
"privateKeyPassword": "rlgneorl3395!"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"basic-info-ext": { /* 서비스 api 이름 */
|
||||||
|
"apiKey": "59f26bf09ed196bfbd98210388c4c6ea9dd0f77bde3f35526f082647a305325b", /* 행정정보 공동이용 서비스가 발급한 api key */
|
||||||
|
/*"apiUrl": "http://10.188.225.25:29001/piss/api/molit/SignguCarBassMatterInqireService", /* 미래행공 운영 호출 URL (행정망) */
|
||||||
|
"apiUrl": "http://10.188.225.94:29001/piss/api/molit/SignguCarBassMatterInqireService", /* 미래행공 개발 호출 URL (행정망) */
|
||||||
|
|
||||||
|
"userServerId": "SVR4050545002", /* 이용기관 gpki server id */
|
||||||
|
"providerServerId": "SVR1500000015", /* 보유기관 gpki server id */
|
||||||
|
|
||||||
|
"gpki": true, /* 데이터 암복호화 사용 여부 */
|
||||||
|
"mock": false /* 보유기관 가상 데이터 사용 여부 */
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
#시군구코드(필수)
|
||||||
|
lvis.sigungu.code=41460
|
||||||
|
#담당자 주민등록번호
|
||||||
|
lvis.charger.ihinum=
|
||||||
|
#담당자 IP 어드레스
|
||||||
|
lvis.charger.ip_adres=
|
||||||
|
#담당자명
|
||||||
|
lvis.charger.nm=이광진
|
||||||
|
#담당자 연락처
|
||||||
|
lvis.charger.wrc_telno=032-440-3963
|
||||||
|
|
||||||
|
#정보시스템 ID(필수)
|
||||||
|
lvis.info_sys.id=41-404
|
||||||
|
#정보시스템 IP(필수)
|
||||||
|
lvis.info_sys.ip=105.19.10.99
|
||||||
|
#정보시스템 MAC 어드레스
|
||||||
|
lvis.info_sys.macaddress=EC:EB:B8:97:F2:14
|
||||||
|
|
||||||
|
#암호화키
|
||||||
|
lvis.enc.key=0BCE7F19897CEA91
|
||||||
|
#암호화키 그룹
|
||||||
|
lvis.enc.key_group=1
|
||||||
|
#암호화키 번호
|
||||||
|
lvis.enc.key_no=1
|
||||||
|
|
||||||
|
#lvis 사용 서비스 (production || test || local)
|
||||||
|
lvis.host.active=local
|
||||||
|
#lvis 운영 서비스 주소
|
||||||
|
lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController
|
||||||
|
#lvis 테스트 서비스 주소
|
||||||
|
lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController
|
||||||
|
|
||||||
|
#자동차 기본사항 조회 로그 저장 여부(true || false)
|
||||||
|
lvis.log.basicInfo=true
|
@ -0,0 +1,34 @@
|
|||||||
|
#시군구코드(필수)
|
||||||
|
lvis.sigungu.code=28000
|
||||||
|
#담당자 주민등록번호
|
||||||
|
lvis.charger.ihinum=
|
||||||
|
#담당자 IP 어드레스
|
||||||
|
lvis.charger.ip_adres=
|
||||||
|
#담당자명
|
||||||
|
lvis.charger.nm=이광진
|
||||||
|
#담당자 연락처
|
||||||
|
lvis.charger.wrc_telno=032-440-3963
|
||||||
|
|
||||||
|
#정보시스템 ID(필수)
|
||||||
|
lvis.info_sys.id=28-230
|
||||||
|
#정보시스템 IP(필수)
|
||||||
|
lvis.info_sys.ip=101.0.115.13
|
||||||
|
#정보시스템 MAC 어드레스
|
||||||
|
lvis.info_sys.macaddress=EC:EB:B8:97:F2:14
|
||||||
|
|
||||||
|
#암호화키
|
||||||
|
lvis.enc.key=0BCE7F19897CEA91
|
||||||
|
#암호화키 그룹
|
||||||
|
lvis.enc.key_group=1
|
||||||
|
#암호화키 번호
|
||||||
|
lvis.enc.key_no=1
|
||||||
|
|
||||||
|
#lvis 사용 서비스 (production || test || local)
|
||||||
|
lvis.host.active=local
|
||||||
|
#lvis 운영 서비스 주소
|
||||||
|
lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController
|
||||||
|
#lvis 테스트 서비스 주소
|
||||||
|
lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController
|
||||||
|
|
||||||
|
#자동차 기본사항 조회 로그 저장 여부(true || false)
|
||||||
|
lvis.log.basicInfo=true
|
@ -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-lvis.log" filePattern="./logs/xit-lvis.%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="egovframework" 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,83 @@
|
|||||||
|
<?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="org.apache.commons" level="OFF" additivity="false"/>
|
||||||
|
<logger name="org.mariadb" level="OFF" additivity="false"/>
|
||||||
|
<!--logger name="jdbc" level="OFF" additivity="false"/-->
|
||||||
|
<logger name="jdbc.connection" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.sqlonly" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.resultset" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.resultsettable" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.audit" level="OFF" additivity="false"/>
|
||||||
|
<logger name="com.zaxxer" level="OFF" additivity="false"/>
|
||||||
|
<logger name="jdbc.sqltiming" level="DEBUG" />
|
||||||
|
|
||||||
|
<!-- 특정패키지 로깅레벨 설정 -->
|
||||||
|
<logger name="cokr.xit" level="DEBUG" additivity="false">
|
||||||
|
<appender-ref ref="CONSOLE"/>
|
||||||
|
<appender-ref ref="FILE"/>
|
||||||
|
<appender-ref ref="Error"/>
|
||||||
|
</logger>
|
||||||
|
|
||||||
|
</configuration>
|
@ -1,34 +0,0 @@
|
|||||||
#\uc2dc\uad70\uad6c\ucf54\ub4dc(\ud544\uc218)
|
|
||||||
lvis.sigungu.code=28000
|
|
||||||
#\ub2f4\ub2f9\uc790 \uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638
|
|
||||||
lvis.charger.ihinum=
|
|
||||||
#\ub2f4\ub2f9\uc790 IP \uc5b4\ub4dc\ub808\uc2a4
|
|
||||||
lvis.charger.ip_adres=
|
|
||||||
#\ub2f4\ub2f9\uc790\uba85
|
|
||||||
lvis.charger.nm=\uc774\uad11\uc9c4
|
|
||||||
#\ub2f4\ub2f9\uc790 \uc5f0\ub77d\ucc98
|
|
||||||
lvis.charger.wrc_telno=032-440-3963
|
|
||||||
|
|
||||||
#\uc815\ubcf4\uc2dc\uc2a4\ud15c ID(\ud544\uc218)
|
|
||||||
lvis.info_sys.id=28-230
|
|
||||||
#\uc815\ubcf4\uc2dc\uc2a4\ud15c IP(\ud544\uc218)
|
|
||||||
lvis.info_sys.ip=101.0.115.13
|
|
||||||
#\uc815\ubcf4\uc2dc\uc2a4\ud15c MAC \uc5b4\ub4dc\ub808\uc2a4
|
|
||||||
lvis.info_sys.macaddress=EC:EB:B8:97:F2:14
|
|
||||||
|
|
||||||
#\uc554\ud638\ud654\ud0a4
|
|
||||||
lvis.enc.key=0BCE7F19897CEA91
|
|
||||||
#\uc554\ud638\ud654\ud0a4 \uadf8\ub8f9
|
|
||||||
lvis.enc.key_group=1
|
|
||||||
#\uc554\ud638\ud654\ud0a4 \ubc88\ud638
|
|
||||||
lvis.enc.key_no=1
|
|
||||||
|
|
||||||
#lvis \uc0ac\uc6a9 \uc11c\ube44\uc2a4 (production || test || local)
|
|
||||||
lvis.host.active=local
|
|
||||||
#lvis \uc6b4\uc601 \uc11c\ube44\uc2a4 \uc8fc\uc18c
|
|
||||||
lvis.host.production=http://auto.car.go.kr:39700/lvis/services/WsFrontController
|
|
||||||
#lvis \ud14c\uc2a4\ud2b8 \uc11c\ube44\uc2a4 \uc8fc\uc18c
|
|
||||||
lvis.host.test=http://10.98.198.199:9700/lvis/services/WsFrontController
|
|
||||||
|
|
||||||
#\uc790\ub3d9\ucc28 \uae30\ubcf8\uc0ac\ud56d \uc870\ud68c \ub85c\uadf8 \uc800\uc7a5 \uc5ec\ubd80(true || false)
|
|
||||||
lvis.log.basicInfo=true
|
|
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
|
||||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
||||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
||||||
</beans>
|
|
@ -1,68 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
|
||||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
|
||||||
xmlns:util="http://www.springframework.org/schema/util"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
||||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
||||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
|
|
||||||
|
|
||||||
<context:component-scan base-package="cokr.xit">
|
|
||||||
<context:include-filter type="annotation" expression="org.springframework.stereotype.Component"/>
|
|
||||||
<context:include-filter type="annotation" expression="org.springframework.stereotype.Service"/>
|
|
||||||
<context:include-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
|
|
||||||
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
|
||||||
</context:component-scan>
|
|
||||||
|
|
||||||
<bean id="antPathMatcher" class="org.springframework.util.AntPathMatcher" />
|
|
||||||
|
|
||||||
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
|
|
||||||
<property name="basenames">
|
|
||||||
<list>
|
|
||||||
<value>classpath:message/message-common</value>
|
|
||||||
<value>classpath:message/authentication-message</value>
|
|
||||||
<value>classpath:org/egovframe/rte/fdl/property/messages/properties</value>
|
|
||||||
</list>
|
|
||||||
</property>
|
|
||||||
<property name="defaultEncoding" value="UTF-8"/>
|
|
||||||
<property name="cacheSeconds">
|
|
||||||
<value>60</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="objectMapper" class="com.fasterxml.jackson.databind.ObjectMapper">
|
|
||||||
<property name="dateFormat" ref="dateFormat"/>
|
|
||||||
</bean>
|
|
||||||
<bean id="dateFormat" class="java.text.SimpleDateFormat">
|
|
||||||
<constructor-arg index="0" value="yyyy-MM-dd HH:mm"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
|
|
||||||
<property name="defaultLocale" value="ko_KR"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean name="propertyService" class="org.egovframe.rte.fdl.property.impl.EgovPropertyServiceImpl" destroy-method="destroy">
|
|
||||||
<property name="properties">
|
|
||||||
<map>
|
|
||||||
<entry key="tempDir" value="D:/workspace/temp"/>
|
|
||||||
|
|
||||||
<entry key="pageUnit" value="10"/>
|
|
||||||
<entry key="pageSize" value="10"/>
|
|
||||||
</map>
|
|
||||||
</property>
|
|
||||||
|
|
||||||
<property name="extFileName">
|
|
||||||
<set>
|
|
||||||
<map>
|
|
||||||
<entry key="encoding" value="UTF-8"/>
|
|
||||||
<entry key="filename" value="classpath*:properties/xit-lvis.properties"/>
|
|
||||||
</map>
|
|
||||||
</set>
|
|
||||||
</property>
|
|
||||||
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="leaveaTrace" class="org.egovframe.rte.fdl.cmmn.trace.LeaveaTrace" />
|
|
||||||
|
|
||||||
</beans>
|
|
@ -1,45 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:p="http://www.springframework.org/schema/p"
|
|
||||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
||||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
|
|
||||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
|
||||||
">
|
|
||||||
|
|
||||||
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
||||||
<property name="driverClassName" value="net.sf.log4jdbc.sql.jdbcapi.DriverSpy"/>
|
|
||||||
<property name="url" value="jdbc:log4jdbc:mariadb://localhost:3306/xit-base?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false" />
|
|
||||||
<property name="username" value="root"/>
|
|
||||||
<property name="password" value="mjkhan"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean"
|
|
||||||
p:dataSource-ref="dataSource"
|
|
||||||
p:configLocation="classpath:sql/mybatis-config.xml"
|
|
||||||
p:mapperLocations="classpath:sql/mapper/**/*.xml"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<bean id="mapperConfigurer" class="org.egovframe.rte.psl.dataaccess.mapper.MapperConfigurer">
|
|
||||||
<property name="basePackage" value="cokr.xit" />
|
|
||||||
<property name="sqlSessionFactoryBeanName" value="sqlSession"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
|
||||||
<property name="dataSource" ref="dataSource"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<tx:advice id="txAdvice" transaction-manager="txManager">
|
|
||||||
<tx:attributes>
|
|
||||||
<tx:method name="*" rollback-for="Exception"/>
|
|
||||||
</tx:attributes>
|
|
||||||
</tx:advice>
|
|
||||||
|
|
||||||
<aop:config>
|
|
||||||
<aop:pointcut id="serviceMethod" expression="execution(* cokr.xit..service.bean..*ServiceBean.*(..))" />
|
|
||||||
<aop:pointcut id="requiredTx" expression="execution(* cokr.xit..service.bean..*ServiceBean.*(..))"/>
|
|
||||||
<aop:advisor advice-ref="txAdvice" pointcut-ref="requiredTx" />
|
|
||||||
</aop:config>
|
|
||||||
|
|
||||||
</beans>
|
|
@ -1,39 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xmlns:p="http://www.springframework.org/schema/p"
|
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
|
||||||
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
|
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
|
||||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
|
|
||||||
|
|
||||||
<mvc:annotation-driven />
|
|
||||||
|
|
||||||
<context:component-scan base-package="cokr.xit" use-default-filters="false">
|
|
||||||
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
|
||||||
<context:include-filter type="annotation" expression="org.springframework.web.bind.annotation.ControllerAdvice"/>
|
|
||||||
</context:component-scan>
|
|
||||||
|
|
||||||
<mvc:interceptors>
|
|
||||||
<mvc:interceptor>
|
|
||||||
<mvc:mapping path="/**"/>
|
|
||||||
<bean class="cokr.xit.foundation.web.AccessInitializer" />
|
|
||||||
</mvc:interceptor>
|
|
||||||
</mvc:interceptors>
|
|
||||||
|
|
||||||
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver" p:order="0"/>
|
|
||||||
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" p:order="1"
|
|
||||||
p:viewClass="org.springframework.web.servlet.view.JstlView"
|
|
||||||
p:prefix="/WEB-INF/jsp/" p:suffix=".jsp"
|
|
||||||
p:exposeContextBeansAsAttributes="true"/>
|
|
||||||
<bean id="jsonView" class="org.springframework.web.servlet.view.json.MappingJackson2JsonView">
|
|
||||||
<property name="contentType" value="application/json;charset=UTF-8"/>
|
|
||||||
<property name="objectMapper" ref="objectMapper"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
|
||||||
<property name="maxUploadSize" value="1073741824" /> <!-- 단위: byte, 1GB=1,073,741,824 byte -->
|
|
||||||
<property name="maxInMemorySize" value="1073741824" /> <!-- 단위: byte, 1GB=1,073,741,824 byte -->
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
</beans>
|
|
Loading…
Reference in New Issue