Categories
Spring Spring Core

Dependency Injection using @Inject and @Named Annotations

We have many ways to Inject Dependencies in Spring. XML Configuration, @Autowired Annotation, @Resource annotation are few of them. Among these methods we have JSR 330 Standard annotations as well. We can choose any one of these based on our application needs. Key Points : @Inject can be used instead of @Autowired and @Resource annotations […]

Categories
Spring Spring Core

Primitives as Dependency in Spring

In Spring Based application all the Objects are Created and Managed by IoC Container. For any Object we have dependency of another Object or Primitives in general. We are going to see a Detailed explanation of “How Primitives are used as Dependencies in Spring Framework?” in this Article. Constructor-args The above code having all available […]