Maven3+eclipse Build WebApp Enterprise-level combat "one"

Source: Internet
Author: User

Want to do enterprise-class web system: Environment Building essential go

1: New


2:next

:

3: Select WebApp


Next


Fill out the finish

Initial Project structure:


The project is wrong, don't rush

Missing jar Package

Right-click Properties---"Build path----" Configure Build Path


Add library------>server Runtime--->next--->finish

Such as:


At the same time, replace the JDK with jdk1.6 or 1.7, mine is 1.7.

Double-click the JRE System library to configure


At this point the structure is as follows:


There's nothing wrong with it!!! Hey

Even the warning is gone.

Then create a new test resources

Right-click Project name: New--->source folder

As follows:


The original folder output directory for this configuration item:

Right-click Properties---"Build path----" Configure Build Path


Edit output directory by double-clicking output folder

Then select the Publish file directory:


src/test/.... Directory does not need to be published: Remove

The final directory is as follows:


Click Apply

Convert to Web project:


Change Java version to 1.6 or 1.7

But why can't the dynamic web Module be changed to 2,.5 or 3.0??????? You know tell me, O (∩_∩) o Thank you

Click Apply--->ok

You can publish it:


Next


Add

Start the service:

Browser input: http://localhost:8080/trigo3/



Finished: Finished!!!!


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.