Last active
          July 19, 2019 05:20 
        
      - 
      
 - 
        
Save tobiasosDev/808117a38854c6c4c285ad4d5d2a5a8a to your computer and use it in GitHub Desktop.  
    [Dozer Mapper Spring Boot] Spring Dozer Config #Java #Spring
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @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