Spring security authenticate exceptions handling

前端 未结 3 731
星月不相逢
星月不相逢 2020-12-09 19:18

I have an app using Spring Security 3.0.x. There I have a custom AuthenticationProvider:

public class A         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 19:19

    Use the below tags for your customize authentication in jsp page.

    
    Username/Password entered is incorrect.
    
    
    Your account is disabled, please contact administrator.
    
    
    Database connection is down, try after sometime.
    
    

    Also include the below tag library for properly working

    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>
    

    ...

提交回复
热议问题