Spring boot 使用spring-security-oauth2-autoconfigure:但需要spring-security-oauth2.2.3.2.RELEASE
我正在将我的项目从SpringBoot1.5.8更新到SpringBoot2.0.x。作为该练习的一部分,我在尝试登录(使用Redis缓存oauth2令牌)时遇到以下异常Spring boot 使用spring-security-oauth2-autoconfigure:但需要spring-security-oauth2.2.3.2.RELEASE,spring-boot,spring-security-oauth2,Spring Boot,Spring Security Oauth2,我正在将我的项目从SpringBoot1.5.8更新到SpringBoot2.0.x。作为该练习的一部分,我在尝试登录(使用Redis缓存oauth2令牌)时遇到以下异常 org.springframework.web.util.NestedServletException:处理程序调度失败;嵌套的异常是java.lang.NoSuchMethodError:org.springframework.data.redis.connection.RedisConnection.set([B[B)V
org.springframework.web.util.NestedServletException:处理程序调度失败;嵌套的异常是java.lang.NoSuchMethodError:org.springframework.data.redis.connection.RedisConnection.set([B[B)V-
我一直在关注以下几组相互关联的github问题
解决这一问题:
…以及他们周围的各种PRs
底线似乎是,这在SpringSecurityOAuth版本2.3.2.0中是固定的
我的问题是:
我没有在pom.xml中直接使用spring security oauth。相反,我们使用spring-security-oauth2-autoconfigure,我相信这会拖到spring-security-oauth2.2.2.1.RELEASE中(根据我的依赖项列表,见下文)
有没有什么好方法可以替代固定的spring security oauth版本?或者有人知道这是否会很快被引入到spring-security-oauth2-autoconfigure中吗?好的,我在pom.xml中解决了这个问题,如下所示
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.3.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
<version>2.0.1.RELEASE</version>
<exclusions>
<exclusion>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
</exclusion>
</exclusions>
</dependency>
org.springframework.security.oauth
spring-security-oauth2
2.3.2.2发布
org.springframework.security.oauth.boot
spring-security-oauth2-autoconfigure
2.0.1.1发布
org.springframework.security.oauth
spring-security-oauth2
我的第二个问题是:是否有计划最终将2.3.2.springsecurityoauth迁移到spring-security-oauth2-autoconfigure中