Browse Source

路径

master
牧羊人 4 years ago
parent
commit
3c2cc7b780
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

@@ -61,7 +61,7 @@ file:
#静态资源对外暴露的访问路径
staticAccessPath: /upload/**
###静态资源实际存储路径
uploadFolder: /data/java/lishui/public/upload/
uploadFolder: /data/java/lishui/public/upload
uploadImage: temp/
servlet:
context-path:

Loading…
Cancel
Save