This configuration used to work in my WebMvcConfigurer:
WebMvcConfigurer
private void addLoginInterceptor(final InterceptorRegistry registry, final HandlerInterce