maven 项目
第一步,
将其替换成jdk1.8
然后
点击project Facts 手动将jdk改成1.8
然后关闭eclipse,打开eclipse的工作空间xxspaces,找到刚才哪个项目,
双击进入,
进入.settings,
用记事本打开它,2.3改为3.0
然后打开eclipse
此时它已经变为3.0。注意,不能在这个地方手动改,因为它会报错。(未演示此情况)
然后在pom.xml里进行配置要使用的jar包
然后就和ssm一样开始写了
配置web.xml
<?xml version="1.0" encoding="UTF-8"?>
<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" id="WebApp_ID" version="3.1">
<display-name>SSM_MavenDemo01</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index