spring boot访问根盘下的文件:

在yml里添加spring.mvc和resource spring: mvc: static-path-pattern: /** resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, classpath:/public/, file:D
相关文章
相关标签/搜索