1. 明確的 setter 和 constructor 依賴注入設定會覆蓋自動綁定設定。
2. 目前 byType and byName 的自動綁定不支援的簡單屬性注入,這裡所指的簡單屬性如基本型態、Strings、Classes、 以及這些簡單屬性的陣列。
原文:
Note that explicit dependencies in property and constructor-arg settings always override autowiring. Please also note that it is not currently possible to autowire so-called simple properties such as primitives, Strings, and Classes (and arrays of such simple properties).
沒有留言:
張貼留言