新建一个dynamic web项目
    图片.png
    点击next,next勾选图片.png
    在webcontent文件夹下创建一个index.html文件
    图片.png
    随便输入点东西进去

    1. <!DOCTYPE html>
    2. <html>
    3. <head>
    4. <meta charset="UTF-8">
    5. <title>Insert title here</title>
    6. </head>
    7. <body>
    8. 罪域的骨终为王!
    9. </body>
    10. </html>

    右键项目选中exprot
    图片.png
    输入war选war file,next
    图片.png
    路径为tomcat/webapp文件夹
    输入http://localhost:8080/FirstTomcatProject/即可看到页面啦
    图片.png