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!!!!