Use this Spring Security configuration:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().anyRequest().permitAll();
}
Make note that this does not disable in Spring Security from the request chain, it just tells Spring Security to allow all requests