Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好!请教一个问题,没有从redis读取到数据 #13

Open
trace-night opened this issue Jul 27, 2017 · 2 comments
Open

您好!请教一个问题,没有从redis读取到数据 #13

trace-night opened this issue Jul 27, 2017 · 2 comments

Comments

@trace-night
Copy link

[org.apache.shiro.realm.AuthenticatingRealm]AuthenticationInfo caching is disabled for info
image
就这个cache一直报空,

@baichengzhou
Copy link
Owner

具体日志呢?Redis连接没问题吧?

@trace-night
Copy link
Author

连接没问题,已经写入
image

这是登录时的日志

[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.realm.AuthenticatingRealm]Looked up AuthenticationInfo [{"createTime":{"date":24,"day":1,"hours":16,"minutes":6,"month":6,"seconds":11,"time":1500883571000,"timezoneOffset":-480,"year":117},"email":"test","id":15,"lastLoginTime":{"date":28,"day":5,"hours":10,"minutes":42,"month":6,"seconds":29,"time":1501209749637,"timezoneOffset":-480,"year":117},"nickname":"test","pswd":"ff38f14c2dfabe3882e35d53a7b0ea23","status":1}] from doGetAuthenticationInfo
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.realm.AuthenticatingRealm]AuthenticationInfo caching is disabled for info [{"createTime":{"date":24,"day":1,"hours":16,"minutes":6,"month":6,"seconds":11,"time":1500883571000,"timezoneOffset":-480,"year":117},"email":"test","id":15,"lastLoginTime":{"date":28,"day":5,"hours":10,"minutes":42,"month":6,"seconds":29,"time":1501209749637,"timezoneOffset":-480,"year":117},"nickname":"test","pswd":"ff38f14c2dfabe3882e35d53a7b0ea23","status":1}]. Submitted token: [com.sojson.core.shiro.token.ShiroToken - test, rememberMe=true].
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.authc.credential.SimpleCredentialsMatcher]Performing credentials equality check for tokenCredentials of type [[C and accountCredentials of type [java.lang.String]
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.authc.credential.SimpleCredentialsMatcher]Both credentials arguments can be easily converted to byte arrays. Performing array equals comparison
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.authc.AbstractAuthenticator]Authentication successful for token [com.sojson.core.shiro.token.ShiroToken - test, rememberMe=true]. Returned account [{"createTime":{"date":24,"day":1,"hours":16,"minutes":6,"month":6,"seconds":11,"time":1500883571000,"timezoneOffset":-480,"year":117},"email":"test","id":15,"lastLoginTime":{"date":28,"day":5,"hours":10,"minutes":42,"month":6,"seconds":29,"time":1501209749637,"timezoneOffset":-480,"year":117},"nickname":"test","pswd":"ff38f14c2dfabe3882e35d53a7b0ea23","status":1}]
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.subject.support.DefaultSubjectContext]No SecurityManager available in subject context map. Falling back to SecurityUtils.getSecurityManager() lookup.
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.mgt.DefaultSecurityManager]Context already contains a session. Returning.
[DEBUG][2017-07-28 10:42:29,871][org.apache.shiro.subject.support.DefaultSubjectContext]No SecurityManager available in subject context map. Falling back to SecurityUtils.getSecurityManager() lookup.
[DEBUG][2017-07-28 10:42:29,887][org.apache.shiro.web.servlet.SimpleCookie]Added HttpServletResponse Cookie [v_v-re-baidu=deleteMe; Path=/shiro.demo; Max-Age=0; Expires=Thu, 27-Jul-2017 02:42:29 GMT]
[DEBUG][2017-07-28 10:42:29,918][org.apache.shiro.web.servlet.SimpleCookie]Added HttpServletResponse Cookie [v_v-re-baidu=cqkIQy6QSjedk15+XT9Azgtn8+ELJUZXtWRl0BEYNlL5YSuu8FZdDIkQbU167RdxU4ejf9yf6DaM3aq58rHccp8y49MMKs5jKAq6CWs9GyVHYn0B3C9InB4EiH7uJ9MU7PsdP/mBPSLNZt1ZYE0wm1PaVFLPHi++ds0kTOIPSQu+MYdmRbOayqvwRPtY7RCv+iBCzamy8h2Xvyux2to6XkVC6x+lq65yKYAUu7oxz1SEatJVXjIuVYYHcJV3gbKmqY3wMc1OatNcK7Z+xzs6f5qYFLwL/q30tOaa7vUeCwekzxNtIyrUVyZlh9MqAAKW4VSIeraDa8md7ROXUlDqpr3hNmJNLWtFO12c1DYvv3BG0Dwqw+vRHFu2lJIKa4KI07oJXrkZb5REpEZ6+Jq1GbG5W5LNgX7iCRhEn7z1VgEezTZZaLHF9M+GBnhJzUmFNiQULyquBxvkoxoZXfsMtSBcorv9njrBZ9K1mUMFWq8e6aMCaUkNW5I18JaKyShiRWPe1XVkc5eNbRpFRlcresVls6eMFsUX9bWumo1bM1GbvFqI1I0SP2LFYxIa6dvgP6/SjP6frABAxCFXX01brjHUkzcK09bDnmVe9HM2kw/5w8FAieZPM2mZVcHQ5G/DbB18qHzA2eCNLuNwKAUrq5qJ+0brZhfZ6/XRxTdE1NaM3eiqN5Ca26zfG1NtVqERK+OlAMlkg6m+1m7HZ8UR6RmwVSjJuLQzfd8RPKSsHO/v9vvtZZ/16QCv2jqbC4hwJnpebaphgkdnEIQeteswR34qUYnQgXMyNaB6ursVVEz4bMlOU6qxc3x6jeKZQL6zwUbPXK2k7Qgzsju+BBbIKuZBD1GHHmo5uJYDCT7mmnoGcyenm+u8qLTsM5jyeyL7+zuEKYqbBqwM09whxHV97o7asHvTyqIZ1GErTktNJRdQarTflZ0fJAE7QRzKNS63/RtI6I/XhVSdH2h1TNtlH5sHUsxTUYdbNRMoKZkhNHo=; Path=/shiro.demo; Max-Age=2592000; Expires=Sun, 27-Aug-2017 02:42:29 GMT; HttpOnly]
[DEBUG][2017-07-28 10:42:29,918][com.sojson.user.controller.UserLoginController]获取登录之前的URL:[/shiro.demo/]
[DEBUG][2017-07-28 10:42:29,980][org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor]Written [{status=200, message=登录成功, back_url=/shiro.demo/}] as "application/json;charset=UTF-8" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@3ea849ca]
[DEBUG][2017-07-28 10:42:29,980][org.springframework.web.servlet.DispatcherServlet]Null ModelAndView returned to DispatcherServlet with name 'springMvc': assuming HandlerAdapter completed request handling
[DEBUG][2017-07-28 10:42:29,980][org.springframework.web.servlet.DispatcherServlet]Successfully completed request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants