From 70976fb9b9b778ca7c5f52163bc78ba75f0d6615 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 08 八月 2020 15:44:08 +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