#fs
lsh
2024-09-10 4375805e5769179d7684a3af3e9132be68c38321
src/main/java/com/zy/core/properties/SlaveProperties.java
@@ -1,9 +1,7 @@
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 com.zy.core.model.*;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@@ -13,19 +11,20 @@
/**
 * Created by vincent on 2020/8/4
 *
 */
/**
 * 该类整个就是一个通过配置文件来实体化对象类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wcs-slave")
public class SlaveProperties {
    private boolean doubleDeep;
    private List<Integer> doubleLocs = new ArrayList<>();
    private int groupCount;
public class SlaveProperties{
    private List<CrnSlave> crn = new ArrayList<>();
    private List<RgvSlave> rgv = new ArrayList<>();
    private List<DevpSlave> devp = new ArrayList<>();
@@ -37,4 +36,8 @@
    private List<Slave> car = new ArrayList<>();
    private List<JarSlave> jar = new ArrayList<>();
    private List<SteSlave> Ste = new ArrayList<>();
}