eclipse代码中添加图片后页面不显示图片,提示“Whitelabel Error Page”

eclipse代码images目录中添加了对应的图片,经验证路径是正确的,但是页面中就是不显示图片

并且提示错误

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Feb 17 11:01:43 CST 2021
There was an unexpected error (type=Not Found, status=404).
No message available

解决办法:

1、手动刷新:eclipse点击项目名称,F5刷新项目后,再次运行代码,页面中显示了图片

2、自动刷新:通过eclipse-Window-Preferences-general-workplace,选中 Refresh using native hooks or polling,这样就可以自动刷新。

以后上传图片、视频文件就会自动刷新了

  
原文地址:https://www.cnblogs.com/zhuque/p/14408435.html