There are five type of auto wiring in Spring:
- no : no autowire
- byName : Autowiring by property name, means bean matching property name is autowired.
- byType : Bean having type as that of property type is autowired.
- constructor : Similar to byType just that the property is in constructor.
- autodetect : Spring is allowed to select autowiring from byType and constructor
No comments:
Post a Comment