踩坑场景:
公司最近做技术架构的改造,并将原SpringBoot1.5.6版本升级为2.0.6,并逐渐将内部服务调用dubbo协议逐渐转换为SpringCloud的Feign调用,前期主要对SpringBoot版本进行升级。
通过
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
自动维护SpringBoot引用版本依赖加载。我们之前采用数据库的方式记录token的方式,原SpringSecurityOauth引用版本同样为2.0.14.RELEASE
但是原低版本生成的token在反序列化时出现兼容性问题。