package org.dromara.mall.product.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 商品中心自动配置类
 * 主要用于扫描商品中心模块的组件
 *
 * @author pengles
 */
@Slf4j
@Configuration
@ComponentScan(basePackages = "org.dromara.mall.product")
@ConditionalOnProperty(prefix = "ruoyi.mall.product", name = "enabled", havingValue = "true", matchIfMissing = true)
public class MallProductAutoConfiguration {

    public MallProductAutoConfiguration() {
        log.info("商品中心模块已启用");
    }
}
