我有一张图片在以下路径:
resources
\_____img
\_______sites
\_______reddit.png
我使用以下命令行引用它:
<p:graphicImage library="img" name="/sites/reddit.png"/>
但是在开发控制台中它显示:
GET http://localhost:8080/RES_NOT_FOUND 404 ()
图片无法渲染。
发生了什么问题?
我有一张图片在以下路径:
resources
\_____img
\_______sites
\_______reddit.png
我使用以下命令行引用它:
<p:graphicImage library="img" name="/sites/reddit.png"/>
但是在开发控制台中它显示:
GET http://localhost:8080/RES_NOT_FOUND 404 ()
图片无法渲染。
发生了什么问题?
src/main/webapp/resources
-------------------------/img
-----------------------------/sites
-----------------------------------/reddit.png
src/main/webapp/WEB-INF
-----------------------/web.xml
<p:graphicImage library="img" name="sites/reddit.png"/>
resources
文件夹位于WEB-INF下,但是无法渲染图像。请帮忙解决,相关主题并没有提供有用的信息。 - TonyRomero