1.可以通过authentication-failure-url="/login.html?error=1"
前端接收参数,根据参数提示 错误
2.前端vue
this.myName= window.location.href.split("?")[1].split("=")[1];/*接收来自重定向的参数id*/
SpringSecurity 如何提示错误
原文:https://www.cnblogs.com/july7/p/12331231.html