Condition: 1. Use Redis to persist the component. 2. Use hot deployment. 3. Use the enumeration class as the state generic S.
Symptom: The restore fails, which is always the initial state of the state configuration.
Cause: After hot deployment is enabled, a different classloader is used to load the state enumeration class deserialized by Redis, resulting in a failure to compare the classes when the state enumeration is matched.