147 lines
7.9 KiB
XML
147 lines
7.9 KiB
XML
<?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"
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
xmlns:util="http://www.springframework.org/schema/util"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd
|
|
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
|
|
http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd
|
|
http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd">
|
|
|
|
<!-- 패키지 내 Controller, Service, Repository 클래스의 auto detect를 위한 mvc 설정 -->
|
|
<context:component-scan base-package="egovframework, kcc, seed ">
|
|
<!-- <context:component-scan base-package="kcc"> -->
|
|
<!-- <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/> -->
|
|
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
|
|
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
|
|
</context:component-scan>
|
|
|
|
<!-- 서블릿컨네이너상의 exception에 대한 오류 페이지를 연결하는 mvc 설정 -->
|
|
<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
|
<property name="defaultErrorView" value="cmm/error/egovError"/>
|
|
<property name="exceptionMappings">
|
|
<props>
|
|
<prop key="org.springframework.dao.DataAccessException">cmm/error/dataAccessFailure</prop>
|
|
<prop key="org.springframework.transaction.TransactionException">cmm/error/transactionFailure</prop>
|
|
<prop key="egovframework.rte.fdl.cmmn.exception.EgovBizException">cmm/error/egovError</prop>
|
|
<prop key="org.springframework.security.AccessDeniedException">cmm/error/accessDenied</prop>
|
|
</props>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver" id="viewResolver" p:order="0"/>
|
|
|
|
<!-- 화면처리용 JSP 파일명의 prefix, suffix 처리에 대한 mvc 설정 -->
|
|
<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"/>
|
|
|
|
<!-- json 추가 -->
|
|
<bean id="jsonView" class="org.springframework.web.servlet.view.json.MappingJackson2JsonView">
|
|
<property name="contentType" value="application/json;charset=UTF-8"/>
|
|
</bean>
|
|
|
|
<bean id="excelDownloadView" class="kcc.com.cmm.spring.view.ExcelDownloadView"/>
|
|
|
|
<!-- 분쟁조정 다운로드 시 return되는 파일 -->
|
|
<bean id="filedownLoad" class="seed.com.gtm.seedfile.FileDownloadView"/>
|
|
|
|
<!-- Annotation 을 사용하지 않는 경우에 대한 MVC 처리 설정 -->
|
|
<mvc:view-controller path="/cmmn/validator.do" view-name="cmmn/validator"/>
|
|
|
|
<mvc:annotation-driven/>
|
|
<context:component-scan base-package="kcc.com.cmm" />
|
|
<!-- System Log Aspect -->
|
|
<bean id="syslog" class="kcc.let.sym.log.lgm.service.EgovSysLogAspect" />
|
|
<aop:config>
|
|
<!-- 관리자 로그를 위한 메소드 -->
|
|
<aop:aspect id="sysLogAspect" ref="syslog">
|
|
<aop:after pointcut="( execution(public * kcc..*Controller.select*(..)) ||
|
|
execution(public * kcc..*Controller.insert*(..)) ||
|
|
execution(public * kcc..*Controller.*List(..)) ||
|
|
execution(public * kcc..*Controller.*Detail(..)) ||
|
|
execution(public * kcc..*Controller.*Create(..)) ||
|
|
execution(public * kcc..*Controller.*Regist(..)) ||
|
|
execution(public * kcc..*Controller.*Prcs(..)) ||
|
|
execution(public * kcc..*Controller.*Pop(..)) ||
|
|
execution(public * kcc..*Controller.update*(..)) ||
|
|
execution(public * kcc..*Controller.delete*(..)) ) ||
|
|
execution(public * seed..*Controller.select*(..)) ||
|
|
execution(public * seed..*Controller.insert*(..)) ||
|
|
execution(public * seed..*Controller.*List*(..)) ||
|
|
execution(public * seed..*Controller.*Detail*(..)) ||
|
|
execution(public * seed..*Controller.*Create*(..)) ||
|
|
execution(public * seed..*Controller.*Regist*(..)) ||
|
|
execution(public * seed..*Controller.*Prcs*(..)) ||
|
|
execution(public * seed..*Controller.*Pop*(..)) ||
|
|
execution(public * seed..*Controller.update*(..)) ||
|
|
execution(public * seed..*Controller.delete*(..)) )
|
|
|
|
&&
|
|
!(execution(public * kcc..*Controller.selectMainMenuHead(..)) ||
|
|
execution(public * kcc..*Controller.selectMainMenuLeft(..)) ||
|
|
execution(public * kcc..*Controller.*Web(..))||
|
|
execution(public * seed..*Controller.*Web(..)) )" method="logAdminSelect" />
|
|
</aop:aspect>
|
|
</aop:config>
|
|
|
|
|
|
<!-- 분쟁조정 서블릿 mapping 경로들 -->
|
|
<mvc:resources mapping="/img/**" location="/WEB-INF/views/_common/_images/" />
|
|
<mvc:resources mapping="/site/**" location="/WEB-INF/views/site/" />
|
|
<mvc:resources mapping="/css/**" location="/WEB-INF/views/_common/_css/" />
|
|
<mvc:resources mapping="/js/**" location="/WEB-INF/views/_common/_js/" />
|
|
<mvc:resources mapping="/ico/**" location="/WEB-INF/views/_common/_ico/" />
|
|
<mvc:resources mapping="/font/**" location="/WEB-INF/views/_common/_font/" />
|
|
<mvc:resources mapping="/ark/**" location="/WEB-INF/views/_common/_ark/" />
|
|
<!-- 분쟁조정 서블릿 mapping 경로들 끝 -->
|
|
|
|
<mvc:resources mapping="/kccadrPb/**" location="/kccadrPb/" />
|
|
<mvc:resources mapping="/kofair_case_seed/**" location="/kofair_case_seed/" />
|
|
<mvc:resources mapping="/editor/**" location="/editor/" />
|
|
<mvc:resources mapping="/codemirror/**" location="/codemirror/" />
|
|
<mvc:resources mapping="/AnySign4PC/**" location="/AnySign4PC/" />
|
|
<mvc:resources mapping="/html/**" location="/html/" />
|
|
<mvc:resources mapping="/innorix/**" location="/innorix/" />
|
|
|
|
|
|
|
|
<!-- 소셜인증(네이버, 카카오) -->
|
|
<context:component-scan base-package="com.barocert.example" />
|
|
|
|
<util:properties id="NAVER_CONFIG">
|
|
<prop key="LinkID">KOFAIR_BC</prop>
|
|
<prop key="SecretKey">r5fQ5qFzWzolkxMBpXyOXwy1L17RJN01tjotQ7Kzhuk=</prop>
|
|
<prop key="ClientCode">024110000010</prop>
|
|
<prop key="IsIPRestrictOnOff">true</prop>
|
|
<prop key="UseStaticIP">true</prop>
|
|
</util:properties>
|
|
|
|
<bean id="navercertService" class="com.barocert.navercert.NavercertServiceImp">
|
|
<property name="linkID" value="#{NAVER_CONFIG.LinkID}"/>
|
|
<property name="secretKey" value="#{NAVER_CONFIG.SecretKey}"/>
|
|
<property name="IPRestrictOnOff" value="#{NAVER_CONFIG.IsIPRestrictOnOff}"/>
|
|
<property name="useStaticIP" value="#{NAVER_CONFIG.UseStaticIP}"/>
|
|
</bean>
|
|
|
|
<util:properties id="KAKAO_CONFIG">
|
|
<prop key="LinkID">KOFAIR_BC</prop>
|
|
<prop key="SecretKey">r5fQ5qFzWzolkxMBpXyOXwy1L17RJN01tjotQ7Kzhuk=</prop>
|
|
<prop key="ClientCode">024110000009</prop>
|
|
<prop key="IsIPRestrictOnOff">true</prop>
|
|
<prop key="UseStaticIP">true</prop>
|
|
</util:properties>
|
|
|
|
<bean id="kakaocertService" class="com.barocert.kakaocert.KakaocertServiceImp">
|
|
<property name="linkID" value="#{KAKAO_CONFIG.LinkID}"/>
|
|
<property name="secretKey" value="#{KAKAO_CONFIG.SecretKey}"/>
|
|
<property name="IPRestrictOnOff" value="#{KAKAO_CONFIG.IsIPRestrictOnOff}"/>
|
|
<property name="useStaticIP" value="#{KAKAO_CONFIG.UseStaticIP}"/>
|
|
</bean>
|
|
<!-- 소셜인증(네이버, 카카오) 끝 -->
|
|
|
|
</beans> |