<?xml version="1.0" encoding="UTF-8"?><beansxmlns="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-4.3.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd"><!-- scan the package and the sub package --><context:component-scanbase-package="test.springmvc"/><!-- don't handle the static resource --><mvc:default-servlet-handler/><!-- if you use annotation you must configure following setting --><mvc:annotation-driven/><!-- configure the InternalResourceViewResolver --><beanclass="org.springframework.web.servlet.view.InternalResourceViewResolver"id="internalResourceViewResolver"><!-- 前缀 --><propertyname="prefix"value="/WEB-INF/pages/"/><!-- 后缀 --><propertyname="suffix"value=".html"/></bean></beans>