SimpleAuth Interceptor
2023-09-10
Configuring the SimpleAuth Interceptor
// Inherit SimpleAuthWebConfig and can pass a Class or Bean name
@Component
public class MySimpleAuthConfig extends SimpleAuthWebConfig {
@Override
public void addAuthHandlers() {
addAuthHandler(MyHandler.class).addPathPatterns("/say");
addAuthHandlerChain(MyHandlerChain.class)
.addPathPatterns("/user/*")
.excludePathPatterns("/user/vip/*");
}
}