Package com.captechconsulting.config

Source Code of com.captechconsulting.config.DozerConfig

package com.captechconsulting.config;

import org.dozer.DozerBeanMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import java.util.Arrays;

@Configuration
public class DozerConfig {

    @Bean
    public DozerBeanMapper getMapper() {
        return new DozerBeanMapper(
                Arrays.asList("dozer-global-configuration.xml", "dozer-mapping.xml")
        );
    }

}
TOP

Related Classes of com.captechconsulting.config.DozerConfig

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.