From 687d250bf7f02bebc03e660933a2669fa28d93b5 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 06 八月 2020 15:55:48 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/properties/SlaveProperties.java |   12 +++++++-----
 1 files changed, 7 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..a03469f 100644
--- a/src/main/java/com/zy/core/properties/SlaveProperties.java
+++ b/src/main/java/com/zy/core/properties/SlaveProperties.java
@@ -1,10 +1,12 @@
 package com.zy.core.properties;
 
 import com.zy.core.Slave;
+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 +17,14 @@
 @ConfigurationProperties(prefix = "wcs-slave")
 public class SlaveProperties {
 
-    private List<Slave> crn;
+    private List<Slave> 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