标签: modelmapper
从文档中的示例...
地图()customer.setName(source.getPerson()的firstName。);
如果“customer”不存在(为null),ModelMapper会自动创建一个新的Customer对象和setCustomer,还是必须事先创建它?
答案 0 :(得分:1)
ModelMapper将为您创建中间对象,包括该示例中的customer。
customer