SSM controller layer frame profile

<?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.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<-! controller Layer ->
<! - scan controller layer open annotation ->
<context: Component Base-Package-Scan = "cn.controller"> </ context: Component-Scan>
<! - resolver configuration view ->
<class the bean = "org.springframework.web.servlet.view.InternalResourceViewResolver">
<Property name = "prefix" value = "/ Pages /"> </ Property>
<Property name = "suffix" value =. "JSP"> </ Property>
</ bean>
<- annotation-driven ->!
<MVC: annotation-driven> </ MVC: annotation-driven>
! <- static resource release ->
<MVC: default-the servlet-Handler> < / MVC: the servlet-default-Handler>
</ Beans>

Guess you like

Origin www.cnblogs.com/geng-geng1997/p/11358639.html