SPRING_SETTING/servletContext.xml_setting servletContext.xml - version 0.01 우혁이 아빠 2012. 1. 30. 18:11 <?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: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-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/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> <!-- ======================================================================== For Spring MVC ======================================================================== --> <mvc:annotation-driven/> <!-- ======================================================================== component scan for controller ======================================================================== --> <context:component-scan base-package="com.tistory.tazz009.test"> <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> <!-- ======================================================================== ViewResolver Setting ======================================================================== --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> <property name="prefix" value="/WEB-INF/jsp/" /> <property name="suffix" value=".jsp" /> <property name="contentType" value="text/html; charset=EUC-KR" /> <property name="order" value="2" /> </bean> </beans> 공유하기 게시글 관리 행복 만들기 - 믿고, 사랑하고 기다리기 저작자표시