【发布时间】:2019-01-03 18:26:41
【问题描述】:
我正在将我的项目从 Spring Boot 1.5.8 更新到 Spring Boot 2.0.x。作为该练习的一部分,我在尝试登录时遇到了以下异常(使用 Redis 缓存 oauth2 令牌)。
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.springframework.data.redis.connection.RedisConnection.set([B[B)V -
我一直在查看以下相互关联的 github 问题集 解决这个问题:
https://github.com/spring-projects/spring-security-oauth/issues/1230 https://github.com/spring-projects/spring-security-oauth/issues/1335
...以及他们周围的各种 PR。
这似乎是在 spring-security-oauth 版本 2.3.2.RELEASE 中修复的。
我的问题是这样的:
我没有直接在我的 pom.xml 中使用 spring-security-oauth。相反,我们使用 spring-security-oauth2-autoconfigure,我相信它会拖入 spring-security-oauth2.2.2.1.RELEASE (根据我的依赖列表,见下文)。
有什么好的方法可以引入固定的 spring-security-oauth 版本吗?或者有谁知道这是否会很快被引入 spring-security-oauth2-autoconfigure ?
【问题讨论】:
标签: spring-boot spring-security-oauth2