首页  :: 新随笔  :: 管理

2012年6月9日

摘要: 默认情况下,不管你是用户名不存在,密码错误,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)

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |