package com.welampiot.configuration; import com.welampiot.common.YamlPropertySourceFactory; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.stereotype.Component; import java.util.List; import java.util.Map; @Component @PropertySource(factory = YamlPropertySourceFactory.class,value = "classpath:config/lamp.yml", encoding = "utf-8") @ConfigurationProperties(prefix = "lamp") @Data public class LampConfig { public Map controlType; }