linux soft link

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">

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327041514&siteId=291194637