xusonglin 5 роки тому
батько
коміт
a7c8e7e86b

+ 1 - 1
src/main/java/com/jkcredit/sysnews/config/CorsConfig.java

@@ -46,7 +46,7 @@ public class CorsConfig implements WebMvcConfigurer {
 
     @Override
     public void addResourceHandlers(ResourceHandlerRegistry registry) {
-        registry.addResourceHandler("/app/image/**").addResourceLocations("/home/jknews/news/photo/");
+        registry.addResourceHandler("/app/image/**").addResourceLocations("file:/home/jknews/news/photo/");
     }