Skip to content

Instantly share code, notes, and snippets.

@tobiasosDev
Last active July 19, 2019 05:20
Show Gist options
  • Save tobiasosDev/808117a38854c6c4c285ad4d5d2a5a8a to your computer and use it in GitHub Desktop.
Save tobiasosDev/808117a38854c6c4c285ad4d5d2a5a8a to your computer and use it in GitHub Desktop.
[Dozer Mapper Spring Boot] Spring Dozer Config #Java #Spring
@org.springframework.context.annotation.Configuration
public class Configuration {
@Bean(name = "org.dozer.Mapper")
public DozerBeanMapper dozerBean() {
List<String> mappingFiles = Arrays.asList(
"dozerMapper.xml"
);
DozerBeanMapper dozerBean = new DozerBeanMapper();
dozerBean.setMappingFiles(mappingFiles);
return dozerBean;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment