ln -s source file path reference path (shortcut) ln -s /a/commonFiles/1 /b/commonFiles/2
Example in practical application:
Of course, you also need tomcat support
[root@localhost conf]# cd /mnt/tomcat-8080/conf/
[root@localhost conf]# vi context.xml
Add the following
<Context path="/myApp" allowLinking="true">