ssm integrated configuration springmvc.xml

<?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:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation= "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http: / http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd /www.springframework.org/schema/mvc/spring-mvc.xsd " > <- scan controller layer -!> < context : scan-Component Base-Package = "com.aaa.ssm.controller" > </ context : Component-scan> <-! open springmvc drive annotation -> < MVC : Annotation-Driven> </ MVC : Annotation-Driven> ! <- resolver configuration view -> <the bean class = "org.springframework.web.servlet.view.InternalResourceViewResolver"






>
<property name="prefix" value="/WEB-INF/jsp/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
</beans>

Guess you like

Origin www.cnblogs.com/b6952/p/10939508.html