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

请问这里生效了吗? #1

Open
crazyNing opened this issue Jan 21, 2019 · 0 comments
Open

请问这里生效了吗? #1

crazyNing opened this issue Jan 21, 2019 · 0 comments

Comments

@crazyNing
Copy link

/**
 * tokenstore 定制化处理
 *
 * @return TokenStore
 * 1. 如果使用的 redis-cluster 模式请使用 VoleRedisTokenStore
 * VoleRedisTokenStore tokenStore = new VoleRedisTokenStore();
 * tokenStore.setRedisTemplate(redisTemplate);
 */
@Bean
public TokenStore redisTokenStore() {
    //VoleRedisTokenStore tokenStore = new VoleRedisTokenStore(redisConnectionFactory);
    //tokenStore.setPrefix(SecurityConstants.VOLE_PREFIX);
    VoleRedisTokenStore tokenStore = new VoleRedisTokenStore();
    tokenStore.setRedisTemplate(redisTemplate(redisConnectionFactory));
    return tokenStore;
}
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

1 participant