//对密码进行加密(不需要使用其他Md5工具  。spring中有 在digestUtils)
        String password = DigestUtils.md5DigestAsHex(user.getPassword().getBytes());
        user.setPassword(password);

posted on 2018-04-10 23:52  lshan  阅读(366)  评论(0编辑  收藏  举报