Jsp 在实现spring安全性后在jsf页面中显示图像时出错
我有一个jsf应用程序,它使用servlet显示硬盘上的图像,现在我开始使用spring安全性,并将我的xhtml文件移动到另一个文件夹中。现在浏览器找不到图像 在servlet中,我用/file定义了映射url 文件夹更改后,当我尝试显示Im时收到此警告Jsp 在实现spring安全性后在jsf页面中显示图像时出错,jsp,jsf,spring-security,Jsp,Jsf,Spring Security,我有一个jsf应用程序,它使用servlet显示硬盘上的图像,现在我开始使用spring安全性,并将我的xhtml文件移动到另一个文件夹中。现在浏览器找不到图像 在servlet中,我用/file定义了映射url 文件夹更改后,当我尝试显示Im时收到此警告 No mime type could be found for file /secured/file/repositorio/48/55/56/351/352.jsp chrome ispector显示的图像url为 http://loca
No mime type could be found for file /secured/file/repositorio/48/55/56/351/352.jsp
chrome ispector显示的图像url为
http://localhost:8080/WSysGED/secured/file/repositorio/48/55/56/351/352.jpg?pfdrid_c=true
但是如果我输入这个ulr
http://localhost:8080/WSysGED/file/repositorio/48/55/56/351/352.jpg?pfdrid_c=true
图像将显示在浏览器中
我不明白为什么url中的/secured/会产生差异,因为servlet映射在/file之后
在我定义的spring application-context-security.xml文件中
<http pattern="/secured/file/**" security="none" />
因此该文件夹没有任何访问限制
为什么不显示图像?我如何修复
提前感谢您的时间和询问在搜索了所有错误的位置后,我意识到我正在做这样的映射servlet/file/*,我刚刚移动到/secured/file/*并开始工作