Przeglądaj źródła

更新路径

master
牧羊人 4 lat temu
rodzic
commit
99817f3f0d
2 zmienionych plików z 2 dodań i 2 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -2,7 +2,7 @@ server:
port: 8010
UPLOAD_URL: http://upload.manufacturecloud.com/
AVATAR_URL: /data/java/lishui/public/upload/
IMAGE_URL: http://img.manufacturecloud.com/
IMAGE_URL: http://images.lishui.com/
servlet:
context-path: /api
spring:

Ładowanie…
Anuluj
Zapisz