|
|
|
@ -15,7 +15,7 @@ import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor;
@@ -15,7 +15,7 @@ import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor;
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通用配置 |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @author ruoyi |
|
|
|
|
*/ |
|
|
|
|
@Configuration |
|
|
|
@ -32,8 +32,8 @@ public class ResourcesConfig implements WebMvcConfigurer
@@ -32,8 +32,8 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|
|
|
|
.addResourceLocations("file:" + RuoYiConfig.getProfile() + "/"); |
|
|
|
|
|
|
|
|
|
/** swagger配置 */ |
|
|
|
|
registry.addResourceHandler("/swagger-ui/**") |
|
|
|
|
.addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/"); |
|
|
|
|
// registry.addResourceHandler("/swagger-ui/**")
|
|
|
|
|
// .addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -67,4 +67,4 @@ public class ResourcesConfig implements WebMvcConfigurer
@@ -67,4 +67,4 @@ public class ResourcesConfig implements WebMvcConfigurer
|
|
|
|
|
// 返回新的CorsFilter
|
|
|
|
|
return new CorsFilter(source); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|