Browse Source

组件注释修改

k 2 years ago
parent
commit
5865188cf4

+ 3 - 2
src/main/java/com/jwk/spring/boot/autoconfigure/RfidReaderTemplate.java

@@ -6,9 +6,10 @@ import com.jwk.spring.boot.rfid.RfidReaderClient;
 
 /**
  * 注入方式:
- * '@Autowired(required = true)'
+ * '@Autowired(required = false)'
+ * '@Qualifier("rfidReaderTemplateFirst")'
  * private RfidReaderTemplate rfidReaderTemplateFirst;
- * 没有open=true的bean千万不要注入,@Autowired(required = false)也不行.
+ * 在某些特定情况下,没有open=true的bean千万不要注入,@Autowired(required = false)也不行.
  *
  * @author JWK
  * @version 1.0