Idea as a widely used development tool, both in the background and in front of the workers, can find its charm.
Idea offers a number of project templates to share with you today as an example of creating a MAVEN Web project:
First step: file--new--project--maven--check create from archetype check WebApp
Click Next and in the next page, enter Groupid,artifacid (see the explanations on these two nouns on the Web: groupId: Defines which group the project belongs to, usually associated with a company or organization, for example, Your company is mycom. It should be defined as com.mycom.mymaven,mymaven as the project name
Artifactid: Defines the unique ID of the current MAVEN project in the group, such as Hellomaven, which I defined as Hello-maven, as well as the spring project, his GroupID for Org.springframework, Artifactid for content projects is Spring-content,web project Spring-web)
After the input is complete, click Next, the following screen appears, click Next, then enter the project name, project address, click Finish ....
Second step: After the first creation, you need to wait a moment, load the corresponding configuration file, and then the following figure shows
The project is now MAVEN's WebApp project.
This time the IDE has a cache that needs to be refreshed in MAVEN project on the right, loading the configuration in the POM (this step is important, I just forgot the point, causing the project configuration is always problematic)
(After adding the dependency of the jar in the Pom later, click on the MAVEN Project refresh button to swipe the cache, as shown in the following illustration
)
This time the Maven WebApp project is completely created and no more configuration is required in project structure
The following two graphs are configured by default and do not need to be modified.
Step three: Tomcat configuration
Click the inverted triangle at the top right of the interface and select Edit configurations
In the next interface, the path of Tomcat needs to be configured correctly:
After configuring the server interface, click Next to the deployment, as shown below: (Click the ' + ' sign, select artifact, then select the war exploded)
After the configuration is complete, click Apply---OK. This will allow you to use your MAVEN Web:
Your vision is more than that.