From 559c77882acf51920ec1e3acd2848df7cf75f71c Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 11 八月 2020 11:03:53 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/properties/SlaveProperties.java | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/core/properties/SlaveProperties.java b/src/main/java/com/zy/core/properties/SlaveProperties.java index ad23f6a..5f5e393 100644 --- a/src/main/java/com/zy/core/properties/SlaveProperties.java +++ b/src/main/java/com/zy/core/properties/SlaveProperties.java @@ -1,10 +1,13 @@ package com.zy.core.properties; import com.zy.core.Slave; +import com.zy.core.model.CrnSlave; +import com.zy.core.model.DevpSlave; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; +import java.util.ArrayList; import java.util.List; /** @@ -15,14 +18,14 @@ @ConfigurationProperties(prefix = "wcs-slave") public class SlaveProperties { - private List<Slave> crn; + private List<CrnSlave> crn = new ArrayList<>(); - private List<Slave> devp; + private List<DevpSlave> devp = new ArrayList<>(); - private List<Slave> barcode; + private List<Slave> barcode = new ArrayList<>(); - private List<Slave> led; + private List<Slave> led = new ArrayList<>(); - private List<Slave> scale; + private List<Slave> scale = new ArrayList<>(); } -- Gitblit v1.9.1