Home  >  Forum  >  Spring
Post New Query

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

http://docs.spring.io/spring/docs/3.0.0.M4/reference/html/ch03s04.html



Write Answer







©2019 concretepage.com | Privacy Policy | Contact Us