配置图片服务器

1, tomcat 的server.xml文件中添加

     <Context docBase="\127.1.1.1storefile" path="/pic" reloadable="true" source="org.eclipse.jst.j2ee.server:pic"/>

2,在第一个Connector中加入 URIEncoding="utf-8"

3,配置host name="ip地址"  在浏览器地址栏中输入http:IP地址/pic/图片路径.jpg 即可访问。

原文地址:https://www.cnblogs.com/w-jinfeng/p/4253727.html