JAVA WEB with Idea

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.