<?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:util="http://www.springframework.org/schema/util"
       xmlns:task="http://www.springframework.org/schema/task"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd  
       http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.3.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.3.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd  
      http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd">							
							
	<context:annotation-config />
    <mvc:annotation-driven>
        <mvc:message-converters>
            <!-- jsonString 한글 set -->
            <bean class="org.springframework.http.converter.StringHttpMessageConverter">
				<property name="supportedMediaTypes">
				    <list>
						<value>text/plain;charset=UTF-8</value>
						<value>text/html;charset=UTF-8</value>
						<value>application/json;charset=UTF-8</value>
				    </list>
				</property>
			</bean>
			<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
				<property name="supportedMediaTypes">
				    <list>
						<value>application/json;charset=UTF-8</value>
						<value>text/plain;charset=UTF-8</value><!-- for IE browser -->
						<value>text/html;charset=UTF-8</value><!-- for IE browser -->
				    </list>
				</property>
			</bean>
			<!-- <bean id="gsonMessageConverter" class="org.springframework.http.converter.json.GsonHttpMessageConverter">
				<property name="supportedMediaTypes">
				    <list>
						<value>application/json;charset=UTF-8</value>
						<value>text/plain;charset=UTF-8</value>
						<value>text/html;charset=UTF-8</value>
				    </list>
				</property>
			</bean> -->
        </mvc:message-converters>
    </mvc:annotation-driven>
    
    <context:component-scan base-package="i2c, com.i2sema, egovframework" use-default-filters="false">
		<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
		<context:include-filter type="annotation" expression="org.springframework.stereotype.Service"/>
    </context:component-scan>
	
	<bean id="exceptionHandler" class="i2c.cmm.exception.SnsExceptionHandler">
		<property name="order" value="1" />
	</bean>
	
	<mvc:interceptors>
    	<bean class="org.springframework.mobile.device.DeviceResolverHandlerInterceptor" />
	</mvc:interceptors>

	<!-- batch -->	 
	<task:scheduler id="niaScheduler"    pool-size="10" />
	<task:executor  id="niaTaskExecutor" pool-size="10" />
	<task:annotation-driven executor="niaTaskExecutor" scheduler="niaScheduler" />
	
	<util:properties id="conf" location="classpath:i2c/properties/conf${server-type}.xml"/>		
	<context:property-placeholder properties-ref="conf"/>
</beans>
