‘login.html?error’ is not a valid redirect URL

http.formLogin().loginPage("login.html").loginProcessingUrl("login").permitAll();

修改为:

http.formLogin().loginPage("/login.html").loginProcessingUrl("/login").permitAll();