package com.zy.core.properties; import com.zy.core.Slave; import com.zy.core.model.CrnSlave; import com.zy.core.model.DevpSlave; import com.zy.core.model.LedSlave; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; import java.util.ArrayList; import java.util.List; /** * Created by vincent on 2020/8/4 * */ /** * 该类整个就是一个通过配置文件来实体化对象类 */ @Data @Configuration @ConfigurationProperties(prefix = "wcs-slave") public class SlaveProperties { private boolean doubleDeep; private List doubleLocs = new ArrayList<>(); private int groupCount; private List crn = new ArrayList<>(); private List devp = new ArrayList<>(); private List barcode = new ArrayList<>(); private List led = new ArrayList<>(); private List scale = new ArrayList<>(); private List car = new ArrayList<>(); }