tomcat配置虚拟目录,虚拟目录,tomcat目录,tomcat服务器,网站图片虚拟目录

<!--  tomcat->conf->server.xml里面<Host>标签内加该段代码 --> 
<Context docBase="d:/upload" path="/项目名称/img" reloadable="true" debug="0" ></Context> 

项目页面获取的代码是:<img id="img" src="${common.contentPath}/imag/相对目录/agentphoto.jpg" width="100" height="100" />http//localhost:8080/项目名称/img/相对目录/photo.png
相关文章
相关标签/搜索