首页 > 编程语言 > 详细

springboot学习入门简易版四---springboot2.0静态资源访问及整合freemarker视图层

时间:2019-05-12 14:07:53      阅读:142      评论:0      收藏:0      [点我收藏+]

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

 

springboot学习入门简易版四---springboot2.0静态资源访问及整合freemarker视图层

原文:https://www.cnblogs.com/cslj2013/p/10851989.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!