1.创建一个工程
2.点击web框架支持
3.点击项目结构,看看WEB-FIN文件包下有没有lib包,没有则加上,并把依赖导入。
4.配置web.xml
1.注册前台控制器DispatcherServlet
2.关联springMVC的配置文件
3.设置启动级别1
4.设置映射路径
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
<serv