原文url:https://blog.csdn.net/ajklaclk/article/details/80804137
https://www.jianshu.com/p/54e0ca450f88
https://blog.csdn.net/ljj_9/article/details/79650008
https://blog.csdn.net/weixin_40050532/article/details/80799708
磁盘目录
WebMvcConfig的代码
//对静态资源的配置
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
String os = System.getProperty("os.name");
if (os.toLowerCase().startsWith("win")) { //如果是Windows系统
registry.addResourceHandler("/smallapple/**")
// /apple/**表示在磁盘apple目录下的所有资源会被解析为以下的路径
.addResourceLocations(&