spring_화면 음악 기본 설정


<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:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd">

	<context:component-scan base-package="dao,handler,inteceptor"></context:component-scan>
	
	<!--         -->
	<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix" value="/WEB-INF/views/"></property>
		<property name="suffix" value=".jsp"></property>
	</bean>
	
	
	<!--        ,   handler -->
	<!-- <mvc:view-controller path="/hello" view-name="abc"/> -->
	
	
	<!--            ,    jquery.js ,        404,    mvc:annotation-driven-->
	<mvc:default-servlet-handler/>
	
	<mvc:annotation-driven></mvc:annotation-driven>
	
	<!--         -->
	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
		<property name="basename" value="i18n"></property>
	</bean>
	
	<!--      -->
	<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
		<property name="defaultEncoding" value="UTF-8"></property>
		<!--         ,      -->
		<property name="maxUploadSize" value="2048000000"></property>
	</bean>
	
	<!--          -->
	<mvc:interceptors>
		<!--            -->
		<bean class="interceptor.FirstInterceptor"></bean>
		
		<!--              -->
		<mvc:interceptor>
			<mvc:mapping path="/emps"/>
			<bean class="interceptor.SecondInterceptor"></bean>
		</mvc:interceptor>
	</mvc:interceptors>
	
	<!--   SimpleMappingException     -->
	<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
		<property name="exceptionAttribute" value="ex"></property>
		<property name="exceptionMappings">
			<props>
				<prop key="java.lang.ArrayIndexOutOfBoundsException">forward:/index.jsp</prop>
			</props>
		</property>
	</bean>
</beans>

좋은 웹페이지 즐겨찾기