SpringMVC项目的搭建过程
第一步:
按住shift健点击右键打开命令窗口
第二步:
在命令窗口输入以下命令
第三步:
选择操作【10 】然后在这2处输入以下命令(名字可以随便取)
第四步:
在main文件里新建一个Java文件
第五步:
修改web.xml(改成常用的模式)
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<display-name>springmvcdemo</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>