Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从文档中的示例...
map().customer.setName(source.getPerson().firstName);
如果“客户”不存在(为空),ModelMapper 将创建一个新的客户对象并自动设置客户,还是我必须事先创建它?
ModelMapper 将为您创建中间对象,包括customer在该示例中。
customer