<img src="file://E:/apache-tomcat-6.0.44-80/webappshtxxwx/2code/<%=request.getParameter("wxh")%>.png>"
border-radius="25px" />
<img src="<%=myinvoicePath%>htxxwx/2code/<%=request.getParameter("wxh")%>.png"
border-radius="25px" />
</div>
</div>
l两种加载服务器上的图片本来都是可以的,路径肯定是正确的!但是就是报错,加载不进来。最终解决方法:
在springmvc.xml的配置文件中,访问静态资源时添加:
<mvc:resources location="/2code/" mapping="/2code/**"></mvc:resources>
完美解决!!!