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,
ModelMapperFactoryBean| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.modelmapper.ModelMapper modelMapper)
Configures the instance of
ModelMapper. |