其他分享
首页 > 其他分享> > 前端页面报Failed to load resource the server responded with a status of 404 ()解决方法

前端页面报Failed to load resource the server responded with a status of 404 ()解决方法

作者:互联网

解决方法:

第一种:
1.在https://www.bitbug.net/中做个favicon.ico文件放在根目录下
2.在head标签引入favicon.ico文件即可

<link th:href="${'/favicon.ico'}" rel="shortcut icon">

第二种:不愿意做图标或者还没想好图标做成什么样,可以直接在head标签插入以下代码也OK

 <link rel="shortcut icon" href="#" />

详细博客: https://www.cnblogs.com/ch-n/p/6841924.html.

标签:load,status,www,resource,head,favicon,https,ico,图标
来源: https://blog.csdn.net/asdfadafd/article/details/123227437