1.Shiro 登录过程
点击登录按钮--->跳转到登录action方法----校验 SecurityUtils.getSubject().login(new UsernamePasswordToken(username, new Md5Hash(password).toHex().toLowerCase()));
-- 会跳转到 doGetAuthenticationInfo方法 --- 获取用户 -- 返回 new SimpleAuthenticationInfo(user, user.getPassword(), getName());
注意 :从 UsernamePasswordToken中拿到用户名 获取用户,至于比对的事情叫跟shiro 处理