22 lines
567 B
Java
22 lines
567 B
Java
package dev.enblng.api.config;
|
|
|
|
import org.modelmapper.ModelMapper;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
//TODO: delete
|
|
@Configuration
|
|
public class BeanConfig {
|
|
@Bean
|
|
public ModelMapper modelMapper() {
|
|
final ModelMapper modelMapper = new ModelMapper();
|
|
|
|
modelMapper.getConfiguration()
|
|
.setFieldMatchingEnabled(true)
|
|
.setFieldAccessLevel(org.modelmapper.config.Configuration.AccessLevel.PRIVATE);
|
|
return modelMapper;
|
|
}
|
|
|
|
|
|
}
|