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