Explorar el Código

提交配置文件

xusonglin hace 5 años
padre
commit
e893b36a61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/java/com/jkcredit/sysnews/config/CorsConfig.java

+ 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("/home/jknews/news/photo/");
     }