no mapping found for http request with uri in dispatcherservlet with name
程序员文章站
2022-03-10 16:20:13
...
<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>
完美解决!!!
推荐阅读
-
No mapping found for HTTP request with URI [/springmvc-1/springmvc/testParamsAndHeaders] in Dispatch
-
vue+No mapping found for HTTP request with URI [*//**] in DispatcherServlet with name ‘springMvc‘
-
异常记录二:寻求解决异常 !No mapping found for HTTP request with URI
-
如何解决“ No mapping found for HTTP request with URI [XXX] in DispatcherServlet with name 'XXX' ”
-
警告: No mapping found for HTTP request with URI [/springmvc-01/helloworld] in DispatcherServlet with
-
No mapping found for HTTP request with URI [/xxx/xxx] in DispatcherServlet with name 'xxx'
-
No mapping found for HTTP request with URI [...] in DispatcherServlet with name ‘DispatcherServlet‘
-
No mapping found for HTTP request with URI [***.html] in DispatcherServlet with name "***"
-
No mapping found for HTTP request with URI [/HelloWeb/] in DispatcherServlet with name 'HelloWeb...
-
No mapping found for HTTP request with URI [/app17a/] in DispatcherServlet with name 'springmvc'解决方法