Archive for category Spring IOC

Spring Constructor Injection

In Spring framework, a dependency can be injected in a couple of ways. Constructor Injection Setter Injection In this example we will visit Spring’s Constructor Injection feature. Here is how my example project’s layout looks like. It’s a maven project, so pom.xml contains basic dependencies. We have a Class Employee Employee has a few dependencies […]

, , , , , , ,

Leave a comment