码迷,mamicode.com
首页 > 移动开发 > 详细

Simplest way to serve static data from outside the application server in a Java web application

时间:2015-05-19 18:12:33      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:

tomcat

service.xml

<Context docBase="/path/to/images" path="/images" />

 

resin

resin.conf

 <host id="" root-directory=".">
      <web-app id="/" root-directory="D:/resin-pro-3.1.10/webapps/ROOT/"/>
      <web-app id="/upload" root-directory="D:\upload"/>
 </host>
 

http://stackoverflow.com/questions/1812244/simplest-way-to-serve-static-data-from-outside-the-application-server-in-a-java

 

 

Simplest way to serve static data from outside the application server in a Java web application

标签:

原文地址:http://www.cnblogs.com/yuyutianxia/p/4514894.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!