package com.xingxi.mq.config;

import com.xingxi.common.config.IdWorkCfg;
import com.xingxi.common.utils.uuid.IdUtils;
import com.xingxi.system.service.ISysDictTypeService;
import com.xingxi.system.service.ISysUserOnlineService;
import com.xingxi.system.service.ISysUserService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.*;

/**
 * 程序注解配置
 *
 * @author biandan
 */

@Configuration
// 表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(exposeProxy = true)
// 指定要扫描的Mapper类的包的路径
@MapperScan("com.xingxi.**.mapper")
@ComponentScan(value = {
        "com.xingxi.system",
        "com.xingxi.common.mq.publisher"
}, excludeFilters = {
        @ComponentScan.Filter(
                type = FilterType.ASSIGNABLE_TYPE,
                classes = {ISysUserService.class,
                        ISysDictTypeService.class,
                        ISysUserOnlineService.class}
        )
})
@Import({IdWorkCfg.class, IdUtils.class})
public class ApplicationConfig {

}
