Disadvantages of Autowire in Spring

Asked on July 17, 2014
What are the disadvantages of Autowire in Spring?

Replied on July 18, 2014
Basic Limitations are:

1. Explicit dependencies in property and constructor-arg settings always override autowiring.

2. Autowiring is less exact than explicit wiring.

3. Wiring information may not be available to tools that may generate documentation from a Spring container.

4. Multiple bean definitions within the container may match the type specified by the setter method or constructor argument to be autowired.

Find Limitations and disadvantages of autowiring in below link spring link


Write Answer

©2023 concretepage.com | Privacy Policy | Contact Us