!11 修正redis连接不释放

Merge pull request !11 from when/main
This commit is contained in:
MaxKeyTop
2022-08-19 04:08:08 +00:00
committed by Gitee

View File

@@ -58,6 +58,7 @@ public class RedisAuthorizationCodeServices extends RandomValueAuthorizationCode
RedisConnection conn=connectionFactory.getConnection();
OAuth2Authentication auth = conn.getObject(PREFIX+code);
conn.delete(PREFIX+code);
conn.close();
return auth;
}