This commit is contained in:
bwcx_jzy 2024-01-02 10:23:47 +08:00
parent ca68ec5fcb
commit f490bee8b4
No known key found for this signature in database
GPG Key ID: E187D6E9DDDE8C53

View File

@ -28,8 +28,6 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import javax.annotation.Resource;
/** /**
* @author bwcx_jzy * @author bwcx_jzy
* @since 2022/12/8 * @since 2022/12/8
@ -37,10 +35,14 @@ import javax.annotation.Resource;
@Configuration @Configuration
public class WebConfigurer implements WebMvcConfigurer { public class WebConfigurer implements WebMvcConfigurer {
@Resource private final ParameterInterceptor parameterInterceptor;
private ParameterInterceptor parameterInterceptor; private final AuthorizeInterceptor authorizeInterceptor;
@Resource
private AuthorizeInterceptor authorizeInterceptor; public WebConfigurer(ParameterInterceptor parameterInterceptor,
AuthorizeInterceptor authorizeInterceptor) {
this.parameterInterceptor = parameterInterceptor;
this.authorizeInterceptor = authorizeInterceptor;
}
@Override @Override