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"