<!-- DispatcherServlet Context: defines this servlet's request-processing
infrastructure -->
<!-- 1 -->
<!-- Enables the Spring MVC @Controller programming model -->
<annotation-driven />
<!-- 2 -->
<context:component-scan base-package="com.javadigital.ykheo" />
<!-- 3 -->
<!-- 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="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>
<!-- 4 -->
<beans:import resource="classpath:dao-context.xml" />
<!-- 5 -->
<!-- Handles HTTP GET requests for /resources/** by efficiently serving
up static resources in the ${webappRoot}/resources directory -->
<resources mapping="/resources/**" location="/resources/" />
<resources mapping="/css/**" location="/WEB-INF/views/css" />
<resources mapping="/images/**" location="/WEB-INF/views/images" />
<resources mapping="/script/**" location="/WEB-INF/views/script" />
<beans:bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<beans:property name="basename" value="classpath:/com/javadigital/ykheo/message/error"/>
</beans:bean>
'강의노트 > Spring' 카테고리의 다른 글
[views]main.jsp (0) | 2013.09.04 |
---|---|
[views]loginForm.jsp (0) | 2013.09.04 |
[controller]UserController.java (0) | 2013.09.04 |
[service]UserServiceImpl.java (0) | 2013.09.04 |
[service]IUserService.java (0) | 2013.09.04 |