SpringBoot中的html页面访问不到js,css等静态资源问题解决方案

首先贴上项目目录结构css 当我在index.html中访问css中的index.css时,发现报404,路径是http://localhost:8080/static/css/index.csshtml <link rel="stylesheet" href="/static/css/index.css" /> 网上的解释是在SpringBoot中,默认配置的/**映射到/sta
相关文章
相关标签/搜索