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

时间:2024-05-02 03:34:07

原因

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

解决

检查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