Server.xml配置图片路径

来源:互联网 发布:php异步请求$.post 编辑:程序博客网 时间:2024/06/11 05:38
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">    <!--主要是这里,docBase是服务器或者本地的物理位置,path是浏览器上访问的地址,这样当浏览器上访问/项目名/headimg/big的时候,tomcat就会根据docBase的物理路径去查找图片了-->      <Context docBase="C:/home/resource/image/tsp-mobile/headimg/big" path="/项目名/headimg/big"/>      <Context docBase="项目名" path="/项目名" reloadable="true" source="org.eclipse.jst.jee.server:tsp-mobile"/></Host>
0 0