<Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

<Context path="/sound" docBase="\\192.168.1.120\sound" debug="0"/>

<Host>

 

项目中录音文件存放在IP地址为192.168.1.120的服务器上,把sound文件夹设为共享,在tomcat server.xml中配置中加上上面的内容。

映射到子项目,配置:

<Context path="/" docBase="daixiui" debug="0"/>

 

 

参考链接:http://blog.csdn.net/lee4755026/article/details/7941765

相关文章:

  • 2021-04-21
  • 2021-06-25
  • 2021-12-17
  • 2022-12-23
  • 2022-02-09
  • 2022-01-08
  • 2022-02-12
  • 2021-04-07
猜你喜欢
  • 2021-09-08
  • 2022-02-09
  • 2021-10-06
  • 2021-11-30
  • 2021-12-06
相关资源
相似解决方案