'login.html?error' is not a valid redirect URL

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_28827039/article/details/84531934
http.formLogin().loginPage("login.html").loginProcessingUrl("login").permitAll();

修改为:

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

猜你喜欢

转载自blog.csdn.net/qq_28827039/article/details/84531934