|
@@ -15,12 +15,16 @@ public class ModbusProperties {
|
|
|
public static final String DEMO_PREFIX = "modbus";
|
|
|
|
|
|
/**
|
|
|
- * 注入方式@Autowired(required = true) private ModbusRtuMasterTemplate modbusRtuMasterTemplateFirst;
|
|
|
+ * 注入方式:
|
|
|
+ * '@Autowired(required = true)'
|
|
|
+ * private ModbusRtuMasterTemplate modbusRtuMasterTemplateFirst;
|
|
|
* 没有open=true的bean千万不要注入,@Autowired(required = false)也不行.
|
|
|
*/
|
|
|
private RtuMasterOrder rtuMaster;
|
|
|
/**
|
|
|
- * 注入方式@Autowired(required = true) private ModbusTcpMasterTemplate modbusTcpMasterTemplateFirst;
|
|
|
+ * 注入方式:
|
|
|
+ * '@Autowired(required = true)'
|
|
|
+ * private ModbusTcpMasterTemplate modbusTcpMasterTemplateFirst;
|
|
|
* 没有open=true的bean千万不要注入,@Autowired(required = false)也不行.
|
|
|
*/
|
|
|
private TcpMasterOrder tcpMaster;
|