首页 > 技术文章 > 配置springboot访问静态文件

kkvt 2020-03-15 04:07 原文

配置yml

spring:
  mvc:
    static-path-pattern: /static/**
  resources:
    static-locations: classpath:/static/

 

推荐阅读