Background When you want to get a deep copy of an object, you can use ObjectOutputStream/ObjectInputStream and serialize/deserialize the target object *1 *2 . Problem In this method, you will get NotSerializableException if the object contains non-serializable fields like MultipartFile of Spring Fr…