解决问题:java.io.InvalidClassException: org.springframework.security.core.authority.SimpleGranted.....

解决java.io.InvalidClassException: org.springframework.security.core.authority.SimpleGrantedAuthority; local class incompatible: stream classdesc serialVersionUID = 500, local class serialVersionUID = 510问题

这是序列化异常,spring-security-core5.0.9中SimpleGrantedAuthority类serialVersionUID默认值是500,spring-security-core5.1.2中SimpleGrantedAuthority类serialVersionUID默认值是510。去pom.xml中修改版本号

你可能感兴趣的:(问题解决)