架構(gòu)師高級(jí)技能kubernetes入門到精通馬老師
@Configurationpublic class WebAuthConfig extends WebMvcConfigurerAdapter {
? ?@Bean
? ?public AuthInterceptor getAuthInterceptor() {
? ? ? ?return new AuthInterceptor();
? ?}
? ?@Override
? ?public void addInterceptors(InterceptorRegistry registry) {
? ? ? ?registry.addInterceptor(new AuthInterceptor());
? ?}}
標(biāo)簽: