Question one: Is the class byte file in the Web-inf directory automatically generated, or is it necessary to manually create the relevant directory and then copy the bytes into it?
Allows eclipse to automatically generate
SOURCE folder: The root directory where the. Java source files are stored
Output Folder:.class The root directory of the compiled outputs
Pure Java project, the "src" is generally set to the source folder, and the bin is set to output folder
In Web project, "src" is generally set to source folder, and web-inf/classes is set to output
Setup steps:
Right-click Project name-->properties-->java build path-->source-->output folder--> project name/web-inf/classes
Note: Here by default there is no classes directory, we need to manually create, set up and click Apply, then you can let eclipse automatically generated
Question two: After the above steps have been set up, you can see the Classes folder in the folder, but in the left tree view of Eclipse, this folder cannot be displayed, how can I make it appear?
The project view on the left side is Project Explorerby default, but the classes directory is not visible, but the Navigator view is the one that can see the classes directory.
Setup steps:
Window-->show View-->navigator
This article is from the "Zifangsky" blog, make sure to keep this source http://983836259.blog.51cto.com/7311475/1685017
Automatic generation and display of class files in the Web-inf directory in the Javaweb project