优化jwt

This commit is contained in:
zhouhao
2017-08-31 00:00:36 +08:00
parent a932d5171e
commit 851e66fbe2
7 changed files with 52 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ public class SessionIdUserTokenGenerator implements UserTokenGenerator ,Serializ
if(null==request)throw new UnsupportedOperationException();
int timeout =request.getSession().getMaxInactiveInterval();
int timeout =request.getSession().getMaxInactiveInterval()*1000;
String sessionId = request.getSession().getId();