|
@ -25,7 +25,7 @@ public class MyWebConfiguration implements WebMvcConfigurer { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void addResourceHandlers(ResourceHandlerRegistry registry) { |
|
|
public void addResourceHandlers(ResourceHandlerRegistry registry) { |
|
|
registry.addResourceHandler("/api/file/**").addResourceLocations("file:" + imagePath + "/"); |
|
|
|
|
|
|
|
|
registry.addResourceHandler(imagePath).addResourceLocations("file:" + imagePath + "/"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// @Override
|
|
|
// @Override
|
|
|