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

Source: Internet
Author: User

Want to do enterprise-class web system: Environment to build an indispensable 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

For example, with:


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


To this time the structure is for example the following:


There's nothing wrong with that.!! Hey

Even the warning is gone.

Then create a new test resources

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

For example, the following:


The original folder output folder for this configuration item:

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


You can edit the output folder by double-clicking Output folders

Then select the Publish file folder:


src/test/.... folder does not need to be advertised: remove

The last folder is for example:


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

Can announce:


Next


Add

Start the service:

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



Done: Finished ...

。


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

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.