Question: what is the difference between constructor and setter injection?
Answer: Difference between Setter and Constructor Injection in Spring framework. ... Setter injection in Spring uses setter methods like setDependency() to inject dependency on any bean managed by Spring's IOC container. On the other hand, constructor injection uses the constructor to inject dependency on any Spring-managed bean.