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

Context configuration of tomcat, virtual access to data

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Local area network through the address to access local data, virtual access, in the server.xml to add the above code. Access instance address: http://localhost:8888:/file/xxx/xxx.jpg tag explanation: context: context, is actually a web project path: virtual directory docBase: the root directory of the actual storage location of the web page, mapped to the path virtual directory reloadable= "true": synchronization of the display can be achieved without restarting after modifying the jsp file

Access example:

Failure: customer reaction can not access picture 404, first check the relevant configuration in the server.xml configuration, found that there is no problem, restart the tomcat server, the problem is solved, so suggest that if the access is less than 404, you can restart tomcat first to see if it can be solved, if not step by step.

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