The directory composition structure of Tomcat's web application _ power node Java collation
What is the structure of web applications? To put it simply, it is how to store the various files in the website.
When developing web applications, different types of files have strict storage rules.
Misplaced files may make the web application inaccessible, or may cause the web server to start an error.
Web application organization:
1) create a root folder for web applications, such as MyWeb, and put xxx.html,xxx.jsp,xxx.css,xxx.js and others into MyWeb.
2) create a folder under MyWeb WEB-INF / / Note the file name must be WEB-INF, and you can't make a single word wrong.
Put the web.xml file in WEB-INF / / web.xml is the configuration file for web application
3) create a folder under WEN-INF classes / / classes folder to store java classes used in web applications
4) create a folder under WEB-INF lib / / lib folder to store the jar files needed for the Java class to run