I have recently upgraded the Spring of my spring boot application, as a result, the underlying Spring Security Core upgraded to 5.4.5.
Now while launching the Spring Boot application, I am seeing following issue:
org.eclipse.jetty.server.HttpChannel - handleException / java.io.InvalidClassException:
org.springframework.security.core.context.SecurityContextImpl; local class incompatible:
stream classdesc serialVersionUID = 530, local class serialVersionUID = 540
In this context, I found this post on GitHub: https://github.com/spring-projects/spring-security/issues/9204 and https://github.com/spring-projects/spring-security/issues/3736.
But I could not figure out how to solve this issue. Could anyone please help here? Thanks.