package com.yunhai.flowcenter.config; import com.yunhai.flowcenter.service.FlowOapiSourceScope; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration @RequiredArgsConstructor public class FlowSourceScopeConfiguration implements WebMvcConfigurer { private final FlowOapiSourceScope scope; @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(scope).addPathPatterns("/oapi/flow/**"); } }