发布新版本出错
记录下一年多的code生涯第一次遇到版本回退,现在是晚上21:52,问题依然没解决
问题描述:
只要连接正式环境的数据库或者redis,获取token接口,第一次访问没错,再次访问会出错(测试数据库和测试redis不会出错)
Caused by: java.io.NotSerializableException: Not allowed to deserialize com.gok.pboot.module.upms.entity.BaseUserDetail
原因:
oauth包版本的问题,这样写是包括2.3.4版本及以上
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>[2.3.4)</version>
修改:
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.3.4.RELEASE</version>
WC!!!居坑!