| | |
| | | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; |
| | | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; |
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
| | | import com.gkhy.common.config.expertConfig; |
| | | import com.gkhy.common.config.ExpertConfig; |
| | | import com.gkhy.common.constant.Constants; |
| | | import com.gkhy.framework.interceptor.RepeatSubmitInterceptor; |
| | | |
| | |
| | | { |
| | | /** 本地文件上传路径 */ |
| | | registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**") |
| | | .addResourceLocations("file:" + expertConfig.getProfile() + "/"); |
| | | .addResourceLocations("file:" + ExpertConfig.getProfile() + "/"); |
| | | |
| | | /** swagger配置 */ |
| | | registry.addResourceHandler("/swagger-ui/**") |