This repository was archived by the owner on May 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 143
NoSuchMethodError.RedisConnection.set([B[B)V #16
Comments
@tangdu did you have any progress in this? |
I'm not reporter but suspect it below issue. And was fixed in |
Hi, @ConnorLH, sorry you're having maven troubles. You can use This question is a bit better for StackOverflow, and I would recommend that you post there to get additional support. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
where use
Springboot 2.0.0.Release & spring-security-oauth2-autoconfigure 2.0.1.BUILD-SNAPSHOT
I think the problem is in lettuce
error mssaage is
Caused by: java.lang.NoSuchMethodError: org.springframework.data.redis.connection.RedisConnection.set([B[B)V at org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore.storeAccessToken(RedisTokenStore.java:160) at org.springframework.security.oauth2.provider.token.DefaultTokenServices.createAccessToken(DefaultTokenServices.java:122) at org.springframework.security.oauth2.provider.token.AbstractTokenGranter.getAccessToken(AbstractTokenGranter.java:70)
my code is
`
@Autowired
private RedisConnectionFactory redisConnectionFactory;
@bean
public TokenStore tokenStore() {
RedisTokenStore redisTokenStore = new RedisTokenStore(redisConnectionFactory);
redisTokenStore.setPrefix("user-token:");
return redisTokenStore;
}
`
The text was updated successfully, but these errors were encountered: