目录

idea2024创建maven-web项目

目录

idea2024创建maven web项目

1、file->new->project->MavenArchetype,在右侧“Archetype”处选择

“org.apache.maven.archetypes:maven-archetype-webapp”,点击“create”创建项目。

https://i-blog.csdnimg.cn/direct/7c2798896fb74650900bc04a4ecd8713.png

2、配置tomcat,如下图所示:

https://i-blog.csdnimg.cn/direct/e016df7caf094520a354c4857d90bf1a.png

https://i-blog.csdnimg.cn/direct/34bc742ea38f4032986e11f9622e228d.png

https://i-blog.csdnimg.cn/direct/73f22b0a97724e878032bfc20a4e015c.png

https://i-blog.csdnimg.cn/direct/608fb66a8a4346fd96459fd48471b6e0.png

https://i-blog.csdnimg.cn/direct/3ab1079cd69e445eab82f26c7c58cd5b.png

设置上下文路径后,点击确定即可

https://i-blog.csdnimg.cn/direct/6f961775705b40b2a8604c347b1228fc.png