2.4.4 SpringBoot 静态资源访问 (9)
Springboot 默认提供静态资源目录位置需放在 classpath 下, 目录名需要符合如下规则
/static /public /resources /META-INF/resources
可以在 src/main/resources 目录下创建 static, 在该位置放置一个图片文件.
启动程序后, 尝试访问 http://localhost:8080/D.JPG, 如能显示图片, 配置成功.
2.5 SpringBoot 整合 freemarker 视图层 (10)
来源: http://www.bubuko.com/infodetail-3055995.html