SimpleAuth Interceptor

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/*");
    }
}