You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 31, 2022. It is now read-only.
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:
Hi, @ConnorLH, sorry you're having maven troubles. You can use mvn dependency:tree to see which dependency is wanting to bring in spring-security-oauth2.
This question is a bit better for StackOverflow, and I would recommend that you post there to get additional support.
Sign up for freeto 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: