SpringSecurity 如何提示错误

1.可以通过authentication-failure-url="/login.html?error=1"

前端接收参数,根据参数提示 错误

2.前端vue

 this.myName= window.location.href.split("?")[1].split("=")[1];/*接收来自重定向的参数id*/

猜你喜欢

转载自www.cnblogs.com/july7/p/12331231.html
今日推荐