<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:task="http://www.springframework.org/schema/task"
	xmlns:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
		http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

	<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->

	<!-- Enables the Spring MVC @Controller programming model -->
	<annotation-driven />

	<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory -->
	<resources mapping="/resources/**"	location="/resources/" />
	<resources mapping="/upload/**"		location="/upload/" />
	<resources mapping="/views/**"		location="/views/" />


	<!-- tilesViewResolver -->
	<beans:bean id="tilesViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
		<beans:property name="viewClass"	value="org.springframework.web.servlet.view.tiles2.TilesView" />
		<beans:property name="order"		value="1" />
	</beans:bean>

	<!-- tiles configurer -->
	<beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
		<beans:property name="definitions">
			<beans:list>
				<beans:value>/WEB-INF/tiles/templates.xml</beans:value>
			</beans:list>
		</beans:property>
	</beans:bean>
	
	<!-- EXEL DOWNLOAD SETTING -->
	<beans:bean id="excelDownload" class="com.newriver.greencross.common.service.ExcelDownloadView" />
	
	<beans:bean id="beanNameViewResolver" class="org.springframework.web.servlet.view.BeanNameViewResolver">
		<beans:property name="order" value="0" />
	</beans:bean>

	<!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory -->
	<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<beans:property name="prefix"	value="/views/" />
		<beans:property name="suffix"	value=".jsp" />
		<beans:property name="order"	value="2" />
	</beans:bean>

	<beans:bean id="codeService"	class="com.newriver.greencross.common.service.PrjCodeServiceImpl" />
	<beans:bean id="vf_codeCache"	class="com.newriver.greencross.common.dto.PrjCodeCacheBean" >
		<beans:property name="codeService" ref="codeService" />
	</beans:bean>

	<!-- Interceptor -->
	<mvc:interceptors>
		<beans:bean class="com.newriver.greencross.common.interceptor.CommonInterceptor" />
	</mvc:interceptors>

	<!-- Component Scanning -->
	<context:component-scan base-package="com.newriver.greencross" />

</beans:beans>
