码迷,mamicode.com
首页 > 编程语言 > 详细

springboot配置路径

时间:2018-08-22 12:40:02      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:path   ica   mvc   ons   static   静态   classpath   stat   pattern   

在application.properties中配置静态资源和静态页的访问路径,

springboot默认访问静态资源路径为:spring,resources.static-locations=classpath:/META-INF/resources,classpath:/resources/,classpath:/static/,classpath:/public/

如静态资源放在webapp/WEB-INF/下,则应配置为classpath:/WEB-INF/

spring.mvc.static-path-pattern默认=/**

springboot配置路径

标签:path   ica   mvc   ons   static   静态   classpath   stat   pattern   

原文地址:https://www.cnblogs.com/lqtbk/p/9516887.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!