This article mainly introduces the use of the idea development environment, the creation of Java WEB Engineering, and describes the production process of the war package.
1 Creating a Maven project
Click Next to fill in the Groupid,artifact Id, Version three indicator.
For example, GroupId, the name of the name of the organization, such as Cn.baidu.webArtifactID: The unique identifier of the project, the name of the actual corresponding project, is the name of the project root directory version: Version number
Archetypecatalog represents the plug-in uses the archetype metadata, does not add this parameter when the default is Remote,local, that is, the central warehouse archetype metadata, because the central warehouse archetype too much, so the result is very slow, Specify internal to indicate that only internal metadata is used.
Create a Java folder under Main to store the Java source files. Similarly, you can specify a different folder.
Specify the configuration items for Tomcat
To this, the configuration is basically complete.
2 How to make a war package
Click view->tool Windows->maven proiects
Click the package to generate the war pack.
3 How to add a dependency package
Click Pom.xml, file, search Maven library, add Gav, such as
<dependency> <groupId>c3p0</groupId> <artifactId>c3p0</artifactId> <version>0.9. 1.2</version> </dependency>
The biggest benefit of MAVEN engineering is that it is very convenient to manage dependencies on packages.
Finish
Resources:
1 Javaweb Study Summary (v)--servlet Development (i) http://www.cnblogs.com/xdp-gacl/p/3760336.html
2 Create a Java Web project using IntelliJ idea 14 and Maven http://www.cnblogs.com/jifeng/p/4658765.html
JAVA WEB with Idea