The configuration in the idea starts the web project through tomcat

share a drink no 2022-11-24 21:18:41 阅读数:928

configurationideastartswebproject

配置一个Tomcat web项目的步骤

1. 选择Project设置jdkand compile output path

2. ModulesInside choose to addWeb并设置对应的web.xml路径

3. 添加依赖

4. Facets

5. Artifacts

6. SDKs

7. 点击添加tomcat配置

8. 通过configure可以设置不同的tomcat容器

点击deployment选择对应的artifacts

Configure the corresponding request path

上述配置完毕后,启动tomcat,访问http://localhost:8081/web/ 显示如下.

copyright:author[share a drink no],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/328/202211242108077872.html