|
|
|
@ -26,15 +26,19 @@ public class ResourcesConfig implements WebMvcConfigurer |
|
|
|
|
@Autowired |
|
|
|
|
private RepeatSubmitInterceptor repeatSubmitInterceptor; |
|
|
|
|
|
|
|
|
|
@Value("${zilber.localtion}") |
|
|
|
|
private String localtion; |
|
|
|
|
/* @Value("${zilberboot.profile}") |
|
|
|
|
private String localtion;*/ |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void addResourceHandlers(ResourceHandlerRegistry registry) |
|
|
|
|
{ |
|
|
|
|
/** 本地文件上传路径 */ |
|
|
|
|
/* *//** 本地文件上传路径 *//* |
|
|
|
|
registry.addResourceHandler("/profile/**") |
|
|
|
|
.addResourceLocations("file:" + localtion + "/"); |
|
|
|
|
.addResourceLocations("file:" + localtion + "/");*/ |
|
|
|
|
/** 本地文件上传路径 */ |
|
|
|
|
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**") |
|
|
|
|
.addResourceLocations("file:" + ZilberbootConfig.getProfile() + "/"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** swagger配置 */ |
|
|
|
|
registry.addResourceHandler("/swagger-ui/**") |
|
|
|
|