how to merge properties from one Java object to another in Java using Spring [SpEL]?
问题 I'm using Spring but not that familiar with all its capabilities. Looking for a good way to copy fields from one Java object instance to another. I've seen How to copy properties from one Java bean to another? but what i'm looking for is more specific, so here are the details: Suppose I have two instances of some class P, source & target, which have getters and setters a,b,c,d and 20 others. I want to copy the properties of of source into target, but only for all properties in a list of