Get the App
SLTechnology News&Howtos  ›  Servers  › 

The directory composition structure of Tomcat's web application _ power node Java collation

Shulou Source: shulou.com Published: 2022-06-02 02:25:49 10月01日 Update

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

Tags: File application folder structure different use location namely form file name server type website rules development service operation configuration power college Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL Redmi macOS Apple