|
@@ -72,8 +72,8 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
|
|
|
DefaultTokenServices tokenServices = new DefaultTokenServices();
|
|
|
tokenServices.setTokenStore(redisTokenStore());
|
|
|
tokenServices.setSupportRefreshToken(true);
|
|
|
- tokenServices.setAccessTokenValiditySeconds(60 * 60 * 24); // token有效期自定义设置,默认12小时
|
|
|
- tokenServices.setRefreshTokenValiditySeconds(60 * 60 * 24 * 30);// 默认30天,这里修改
|
|
|
+ //tokenServices.setAccessTokenValiditySeconds(60 * 60 * 24); // token有效期自定义设置,默认12小时
|
|
|
+ //tokenServices.setRefreshTokenValiditySeconds(60 * 60 * 24 * 30);// 默认30天,这里修改
|
|
|
return tokenServices;
|
|
|
}
|
|
|
|