原因

复制的静态资源目录没有编译

解决

检查target目录中,是否有static目录,若没有,重新右键项目install即可

[bug] IDEA springboot项目 访问静态资源 html页面 报404[bug] IDEA springboot项目 访问静态资源 html页面 报404

若还不能解决,尝试浏览器缓存和IDEA编译设置,详见参考链接

参考

https://www.cnblogs.com/ssjxx98/p/12984188.html

https://www.cnblogs.com/xphhh/p/11355336.html

https://www.cnblogs.com/duaner92/p/10833798.html

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2021-05-02
  • 2021-07-01
  • 2021-11-06
  • 2021-08-01
  • 2021-11-20
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2021-10-06
  • 2022-02-24
  • 2021-11-20
相关资源
相似解决方案