1:配置web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SpringMVC</display-name>
<welcome-file-list>
<welcome-file>webpage/index.html</welcome-file>
<welcome-file>webpage/index.htm</welcome-file>
<welcome-file>webpage/index.jsp</welcome-file>
<welcome-file>webpage/default.html</welcome-file>
<welcome-file>webpage/default.htm</welcome-file>
<welcome-file>webpage/default.jsp</welcome-file>
</welcome-file-list>