public interface ModelMapperConfigurer
ModelMapper instance. The concrete implementation of this interface
needs to be registered within the application context in order to be processed.
Example:
@Component
public class UserMapping implements ModelMapperConfigurer {
void configure(ModelMapper modelMapper) {
modelMapper.getConfiguration()
.setSourceNamingConvention(NamingConventions.NONE);
.setDestinationNamingConvention(NamingConventions.NONE);
}
}
ModelMapper,
ModelMapperFactoryBeanCopyright © 2024. All rights reserved.