摘要:
默认情况下,不管你是用户名不存在,密码错误,SS都会报出Bad credentials异常信息,而不现实具体的错误。翻源码发现在org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider有如下这段代码。try{user=retrieveUser(username,(UsernamePasswordAuthenticationToken)authentication);}catch(UsernameNotFoundExceptionnotFound){logger.debug( 阅读全文
posted @ 2012-06-09 11:04 季枫 阅读(33086) 评论(1) 推荐(0)
浙公网安备 33010602011771号