How to display error message in my JSP page using spring security 2.0

前端 未结 6 876
忘了有多久
忘了有多久 2021-01-05 11:52

Hi I am now using spring security. It works fine. But if login failed, no error message display. I am wondering how can I display error message?

I have configured th

6条回答
  •  时光说笑
    2021-01-05 12:35

    This worked for me :

    
    
    Your login attempt was not successful, try again.
    Reason: ${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}

提交回复
热议问题