当前位置:网站首页>Application virtual directory static resource configuration on tongweb

Application virtual directory static resource configuration on tongweb

2022-06-13 05:42:00 t007321

Configure virtual directory , The most important thing about static resources is to clarify the relative path problem , The following is an example .

The static resource directory is as follows :

  In the application WEB-INF Under the directory tongweb-web.xml Format example :

<?xml version="1.0" encoding="UTF-8"?>
<tongweb-web-app>
   <property name="aliases"  value="/static01=/home/webappstatic01" />
</tongweb-web-app>


#static01 Is the access path
#/home/webappstatic01 Is the absolute path of static resources

原网站

版权声明
本文为[t007321]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280507591559.html