|
|
|
|
@ -1,16 +1,18 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
<beans:beans
|
|
|
|
|
xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:beans="http://www.springframework.org/schema/beans"
|
|
|
|
|
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:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
|
|
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
|
|
|
|
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.3.xsd">
|
|
|
|
|
|
|
|
|
|
<bean id="printAdvice" class="gtpa.brs.openapi.web.Advice"></bean>
|
|
|
|
|
<beans:bean id="printAdvice" class="gtpa.brs.openapi.web.Advice"></beans:bean>
|
|
|
|
|
|
|
|
|
|
<aop:config>
|
|
|
|
|
<aop:pointcut expression="execution(* gtpa.brs.openapi..web.*Controller.*(..))" id="allControlPointCut" />
|
|
|
|
|
@ -27,69 +29,61 @@
|
|
|
|
|
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
|
|
|
|
|
</context:component-scan>
|
|
|
|
|
|
|
|
|
|
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
|
|
|
|
|
<property name="webBindingInitializer">
|
|
|
|
|
<bean class="egovframework.service.cmmn.web.EgovBindingInitializer"/>
|
|
|
|
|
</property>
|
|
|
|
|
<beans:bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
|
|
|
|
|
<beans:property name="webBindingInitializer">
|
|
|
|
|
<beans:bean class="egovframework.service.cmmn.web.EgovBindingInitializer"/>
|
|
|
|
|
</beans:property>
|
|
|
|
|
<!-- Restful : 추가 20190403 iwchoi -->
|
|
|
|
|
<property name="messageConverters">
|
|
|
|
|
<list>
|
|
|
|
|
<bean
|
|
|
|
|
class="org.springframework.http.converter.StringHttpMessageConverter">
|
|
|
|
|
<property name="supportedMediaTypes">
|
|
|
|
|
<list>
|
|
|
|
|
<value>text/html;charset=UTF-8</value>
|
|
|
|
|
<value>application/json;charset=UTF8</value>
|
|
|
|
|
</list>
|
|
|
|
|
</property>
|
|
|
|
|
</bean>
|
|
|
|
|
<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" />
|
|
|
|
|
</list>
|
|
|
|
|
</property>
|
|
|
|
|
</bean>
|
|
|
|
|
<bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping">
|
|
|
|
|
<property name="interceptors">
|
|
|
|
|
<list>
|
|
|
|
|
<ref bean="localeChangeInterceptor" />
|
|
|
|
|
</list>
|
|
|
|
|
</property>
|
|
|
|
|
</bean>
|
|
|
|
|
<beans:property name="messageConverters">
|
|
|
|
|
<beans:list>
|
|
|
|
|
<beans:bean
|
|
|
|
|
class="org.springframework.http.converter.StringHttpMessageConverter">
|
|
|
|
|
<beans:property name="supportedMediaTypes">
|
|
|
|
|
<beans:list>
|
|
|
|
|
<beans:value>text/html;charset=UTF-8</beans:value>
|
|
|
|
|
<beans:value>application/json;charset=UTF8</beans:value>
|
|
|
|
|
</beans:list>
|
|
|
|
|
</beans:property>
|
|
|
|
|
</beans:bean>
|
|
|
|
|
<beans:bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter" />
|
|
|
|
|
</beans:list>
|
|
|
|
|
</beans:property>
|
|
|
|
|
</beans:bean>
|
|
|
|
|
<beans:bean class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping">
|
|
|
|
|
<beans:property name="interceptors">
|
|
|
|
|
<beans:list>
|
|
|
|
|
<beans:ref bean="localeChangeInterceptor" />
|
|
|
|
|
</beans:list>
|
|
|
|
|
</beans:property>
|
|
|
|
|
</beans:bean>
|
|
|
|
|
|
|
|
|
|
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver" />
|
|
|
|
|
<!-- 쿠키를 이용한 Locale 이용시 <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver"/> -->
|
|
|
|
|
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
|
|
|
|
|
<property name="paramName" value="language" />
|
|
|
|
|
</bean>
|
|
|
|
|
<beans:bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver" />
|
|
|
|
|
<!-- 쿠키를 이용한 Locale 이용시 <beans:bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver"/> -->
|
|
|
|
|
<beans:bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
|
|
|
|
|
<beans:property name="paramName" value="language" />
|
|
|
|
|
</beans:bean>
|
|
|
|
|
|
|
|
|
|
<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
|
|
|
|
<property name="defaultErrorView" value="cmmn/egovError"/>
|
|
|
|
|
<property name="exceptionMappings">
|
|
|
|
|
<props>
|
|
|
|
|
<prop key="org.springframework.dao.DataAccessException">cmmn/dataAccessFailure</prop>
|
|
|
|
|
<prop key="org.springframework.transaction.TransactionException">cmmn/transactionFailure</prop>
|
|
|
|
|
<prop key="egovframework.rte.fdl.cmmn.exception.EgovBizException">cmmn/egovError</prop>
|
|
|
|
|
<prop key="org.springframework.security.AccessDeniedException">cmmn/egovError</prop>
|
|
|
|
|
</props>
|
|
|
|
|
</property>
|
|
|
|
|
</bean>
|
|
|
|
|
<beans:bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
|
|
|
|
<beans:property name="defaultErrorView" value="cmmn/egovError"/>
|
|
|
|
|
<beans:property name="exceptionMappings">
|
|
|
|
|
<beans:props>
|
|
|
|
|
<beans:prop key="org.springframework.dao.DataAccessException">cmmn/dataAccessFailure</beans:prop>
|
|
|
|
|
<beans:prop key="org.springframework.transaction.TransactionException">cmmn/transactionFailure</beans:prop>
|
|
|
|
|
<beans:prop key="egovframework.rte.fdl.cmmn.exception.EgovBizException">cmmn/egovError</beans:prop>
|
|
|
|
|
<beans:prop key="org.springframework.security.AccessDeniedException">cmmn/egovError</beans:prop>
|
|
|
|
|
</beans:props>
|
|
|
|
|
</beans:property>
|
|
|
|
|
</beans:bean>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
<bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" p:order="1"
|
|
|
|
|
p:viewClass="org.springframework.web.servlet.view.JstlView"
|
|
|
|
|
p:prefix="/WEB-INF/jsp/egovframework/example/" p:suffix=".jsp"/>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!-- For Pagination Tag -->
|
|
|
|
|
<bean id="imageRenderer" class="egovframework.service.cmmn.web.EgovImgPaginationRenderer"/>
|
|
|
|
|
|
|
|
|
|
<bean id="paginationManager" class="egovframework.rte.ptl.mvc.tags.ui.pagination.DefaultPaginationManager">
|
|
|
|
|
<property name="rendererType">
|
|
|
|
|
<map>
|
|
|
|
|
<entry key="image" value-ref="imageRenderer"/>
|
|
|
|
|
</map>
|
|
|
|
|
</property>
|
|
|
|
|
</bean>
|
|
|
|
|
<!-- /For Pagination Tag -->
|
|
|
|
|
<beans:bean id="imageRenderer" class="egovframework.service.cmmn.web.EgovImgPaginationRenderer"/>
|
|
|
|
|
|
|
|
|
|
<beans:bean id="paginationManager" class="egovframework.rte.ptl.mvc.tags.ui.pagination.DefaultPaginationManager">
|
|
|
|
|
<beans:property name="rendererType">
|
|
|
|
|
<beans:map>
|
|
|
|
|
<beans:entry key="image" value-ref="imageRenderer"/>
|
|
|
|
|
</beans:map>
|
|
|
|
|
</beans:property>
|
|
|
|
|
</beans:bean>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<mvc:view-controller path="/cmmn/validator.do" view-name="cmmn/validator"/>
|
|
|
|
|
</beans>
|
|
|
|
|
</beans:beans>
|