I used to using MyEclipse before, but later I felt weird when I changed it to Eclipse.
Before creating a web project, first configure the jdk environment and tomcat environment (that is, add the tomcat server in the development tool)
Note:
Download addresses for different versions of eclipse: http://www.eclipse.org/downloads/eclipse-packages/
Notes on different versions of Java development download eclipse:
The jdk version and eclipse version are the same, otherwise eclipse cannot be opened. For example, eclipse and jdk are both 64-bit
eclipse download selection: Eclipse IDE for Java EE Developers
Different versions are in the lower right corner of the page "MORE DOWNLOADS"
It is best to choose "Mars Packages" or "Luna Packages" for downloading different versions of eclipse
If you want to use Eclipse to create a web, you should still maintain the same project structure as MyEclipse (that is, the project structure after publishing to tomcat).
Please note the following new project construction process.
1. As shown in Figure 1. Click the New Dynamic Web Project option.
2. As shown in Figure 2. Pay attention to the Dynamic web module version value. I am used to using version 2.5, which means that the content of the web.xml file is different.
3. As shown in Figure 3. Pay attention to the Default output folder directory location. I am used to the path of MyEclipse, namely WebRoot/WEB-INF/classes.
4. As shown in Figure 4. Note the Content directory value: WebRoot. Click finish to finish.
5. As shown in Figure 5. Check out the project structure and file location.
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.