IDEA project using Maven build Web

Environment: IDEA2017.2.6, Tomcat8.5, Maven3.5

First, create a Maven project, [File] -> [New] -> [Project ...]

Next:

Then: test your Web project is not a project, and if so webapp-> New JSP option is the option, not the bottom right corner, then click on the [Log] import Changes

Detection: Click the Tools menu bar (top left corner) [File] -> [Project Structure ...] -> [Modules] that there is OK to Web

Next, start the project:

 

, Configured, and run the project

Project Results Figure:

Reference blog:

IntelliJ IDEA to create a hello world Java web Maven project from start to finish are pictures and the truth 2017 version

IntelliJ IDEA 2017 created a web-based maven project

Published 95 original articles · won praise 43 · views 70000 +

Guess you like

Origin blog.csdn.net/lyxuefeng/article/details/100389634