idea设置虚拟路径

问题描述:

Tomcat虚拟路径访问本地图片失败的问题出现404


解决方案:

1.工具栏选择Run 找到Edit configurations


2.Deploy applications configured in Tomcat instance不要勾上

tomcat虚拟路径访问图片的坑

3.选择deployment 点击加号添加虚拟路径

tomcat虚拟路径访问图片的坑
tomcat虚拟路径访问图片的坑

相关文章: