0
点赞
收藏
分享

微信扫一扫

springboot视图解析器配置

刘员外__ 2022-01-31 阅读 86
#yml配置
spring:
  mvc:
#  视图解析器
    view:
      prefix: /imf/
      suffix: .html
#  静态资源访问前缀(区分动态资源和静态资源)
    static-path-pattern: /imf/
#  静态资源的加载路径
  resources:
    static-locations: classpath:/templates/
举报

相关推荐

0 条评论