springboot整合freemarker静态文件css,js报404

springboot整合freemarker静态文件css,js报404
解决方法:
在application.properties添加
Spring.resources.static-locations= classpath:/static

我的目录结构如下:
springboot整合freemarker静态文件css,js报404_第1张图片

你可能感兴趣的:(spring,boot,freemarker,js,css)