@@ -0,0 +1,807 @@
+package cn.org.guhao.zospringboot.shiro;%0D%0A%0D%0Aimport org.apache.shiro.authc.AuthenticationException;%0D%0Aimport org.apache.shiro.authc.AuthenticationInfo;%0D%0Aimport org.apache.shiro.authc.AuthenticationToken;%0D%0Aimport org.apache.shiro.authz.AuthorizationInfo;%0D%0Aimport org.apache.shiro.realm.AuthorizingRealm;%0D%0Aimport org.apache.shiro.subject.PrincipalCollection;%0D%0A%0D%0A/**%0D%0A * Shiro Realm%0D%0A * @author guhao%0D%0A *%0D%0A */%0D%0Apublic class ShiroRealm extends AuthorizingRealm %7B%0D%0A%0D%0A%09@Override%0D%0A%09protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection arg0) %7B%0D%0A%09%09// TODO Auto-generated method stub%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09protected AuthenticationInfo doGetAuthenticationInfo(%0D%0A%09%09%09AuthenticationToken arg0) throws AuthenticationException %7B%0D%0A%09%09// TODO Auto-generated method stub%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

add shiro realm and leave todo