Recently, I was using tomcat to develop a project. For special reasons, I cannot use the maven or web server environment that comes with IDE. Therefore, each modification requires copying the file to the production environment, however, when there are too many project files, the copy operation will be slow every time, so I thought of using the Linux soft connection method. However, after creating a soft link under my own webapp, I will never be able to access it, later found that if you need to use soft links, you need to modify some webapp settings, the specific method is to create a META-INF directory under the webapp directory, and create a context under it. XML file with the following content:
<? XML version = "1.0" encoding = "UTF-8"?> <Br/> <context Path = "/MyApp" allowlinking = "true"> <br/> </context>
Restart tomcat. Everything is OK.