package com.ruoyi.datacollection.config; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * 数据采集模块的 yml 配置(仅作兜底,不是主开关)。 * *
* datacollection: * enabled: false **/ @Data @Component @ConfigurationProperties(prefix = "datacollection") public class DataCollectionProperties { /** * 是否启用数据采集模块(默认启用)。 *
* 仅当 {@code sys_config} 中没有 {@code datacollection.enabled} 时生效,见 {@link DataCollectionSwitch}。 */ private boolean enabled = true; }