Pārlūkot izejas kodu

更新路径

master
牧羊人 pirms 4 gadiem
vecāks
revīzija
99817f3f0d
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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:

Notiek ielāde…
Atcelt
Saglabāt