如何加密密码将其插入数据库,比较后他何时想要连接?
我会使用 Spring 安全性 3.1。
链接文档春季 : http://docs.spring.io/spring-security/site/docs/3.1.4.RELEASE/reference/crypto.html 链接 API SPring 安全性 3.1.4 : http://docs.spring.io/spring-security/site/docs/3.1.4.RELEASE/apidocs/
散列密码并将其存储在数据库中..当登录时散列输入的密码并将其与存储在数据库中的密码进行比较..
检查此链接..可能会帮助您...
http://www.mkyong.com/spring-security/spring-security-password-hashing-example/