@@ -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); | |||
} | |||
} |
@@ -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: |