Browse Source

更新

master
牧羊人 4 years ago
parent
commit
e3883b0626
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/java/com/taauav/common/config/WebMvcConfig.java
  2. +1
    -1
      src/main/resources/config/application-dev.yml

+ 1
- 1
src/main/java/com/taauav/common/config/WebMvcConfig.java View File

@@ -29,7 +29,7 @@ public class WebMvcConfig extends WebMvcConfigurationSupport {
.addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler(staticAccessPath).addResourceLocations("file:///"+uploadFolder);
registry.addResourceHandler(staticAccessPath).addResourceLocations("file:"+uploadFolder);
super.addResourceHandlers(registry);
}
}

+ 1
- 1
src/main/resources/config/application-dev.yml View File

@@ -59,7 +59,7 @@ file:
#上传的服务器上的映射文件夹
accessPath: /upload/
#静态资源对外暴露的访问路径
staticAccessPath: /upload/**
staticAccessPath: /**
###静态资源实际存储路径
uploadFolder: /data/java/lishui/public/upload/
uploadImage: temp/

Loading…
Cancel
Save