搭建springMVC配置文件
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" 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" 配置前端控制器 < ! -- 配置前端控制器 -- > < servlet > < servlet - name > dispatcherServlet < / servlet - name > < servlet - class > org . springframework . web . servlet . DispatcherServlet < / servlet - class > < ! -- 配置读取springmvc . xml的文件位置 -- > < init - param > < param - name >