Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report