package com.zksy.system.config;

import com.github.dreamyoung.mprelation.AutoMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mprelation关联查询配置类
 *
 * @author 朱健
 * @date 2022-04-25
 */
@Configuration
public class AutoMapperConfig {
    /**
     * mprelation 关联查询
     *
     */
    @Bean
    public AutoMapper autoMapper() {
        //配置实体类所在目录（可多个,暂时不支持通过符*号配置,暂不支持多数据源）
        return new AutoMapper(new String[]{"com.zksy.system.basicData.domain", "com.zksy.common.core.domain.entity"});
    }

}
