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.
我们正在使用 Mapster 来映射到我们的模型。默认情况下从模型适应 DTO 展平。但是,为了展开,我们必须添加如下内容:
TypeAdapterConfig<EmployeeCreateCommand, Employee>.NewConfig().Unflattening(true);
有没有办法在不使用接口的情况下全局配置它?
如果没有,是否可以使用接口来做到这一点?(例如只是市场接口)