一。第一大步-----新建一个项目:
文件--新建--项目
![](https://img-blog.csdnimg.cn/0a80d191fe8e4a3b980a1a8b61979d7a.png)
空项目--项目名称(可以随便起)(与3要保持一致,一般情况3会在2后自动生成)--点完成即可![](https://img-blog.csdnimg.cn/7e546f6c1d784796a0a2cd6e4c9eca66.png)
第二大步----新建模块:
文件--新建--模块
![](https://img-blog.csdnimg.cn/827c1acc760843199075f2610d28d157.png)
java模块--点击下一步即可
![](https://img-blog.csdnimg.cn/0b1fe912cd3b4e0fa3611e49a6bb0e00.png)
模块名称(起名字)--完成![](https://img-blog.csdnimg.cn/6d579500c3f84a8596bbed6e518d2775.png)
第三大步----让模块变为javaEE模块:
右键点击--添加框架支持--选中web应用程序--再确定即可
![](https://img-blog.csdnimg.cn/1ce407ab11184a57a253631d886d72e8.png)
![](https://img-blog.csdnimg.cn/6cb28891a5514cbc8a3d0dcfec6ddb4c.png)
确定之后就会出现
![](https://img-blog.csdnimg.cn/6e6513b88d6f47819786124a864e7226.png)
二。 jar包的导入
在上述步骤的基础上进行
![](https://img-blog.csdnimg.cn/eb4cfd40b5e64a6cb41b5c2f36b7a0c9.png)
![](https://img-blog.csdnimg.cn/a226acd58f034a1c80844562c430515d.png)
按照此路径找到这两个包--再点应用、确定即可
![](https://img-blog.csdnimg.cn/c20be9edc8c44d29bffb9f4dca4ad0bd.png)
如此即导入成功
![](https://img-blog.csdnimg.cn/ae7376e2dcc44eca8b7c662b399c41f2.png)
三。Tomcat配置
编辑配置
![](https://img-blog.csdnimg.cn/1ac0d8115e1841c9bfb1caba1605af33.png)
![](https://img-blog.csdnimg.cn/8bff292672a24938805e6f22956a1259.png)
出现该警告时--修复--确定![](https://img-blog.csdnimg.cn/cc22ffbe45314d97930788ff303b0d74.png)
出现此即配置成功
![](https://img-blog.csdnimg.cn/ca8cbeffe2ed4301a114f08d6240c358.png)