|
@@ -18,9 +18,10 @@ public class ModbusAutoConfiguration {
|
|
|
/**
|
|
|
* RTU-Master first
|
|
|
* 注入方式:
|
|
|
- * '@Autowired(required = true)'
|
|
|
+ * '@Autowired(required = false)'
|
|
|
+ * '@Qualifier("modbusRtuMasterTemplateFirst")'
|
|
|
* private ModbusRtuMasterTemplate modbusRtuMasterTemplateFirst;
|
|
|
- * 没有open=true的bean千万不要注入,@Autowired(required = false)也不行.
|
|
|
+ * 在某些特定情况下,没有open=true的bean千万不要注入,@Autowired(required = false)也不行.
|
|
|
*
|
|
|
* @param modbusProperties
|
|
|
* @return
|