context:component- scan

context:component- scan element helps to identify the java classes which can be registered as a spring beans. Let us understand how context:component- scan works ? step 1 All the java classes that need to register as a spring bean must be annotated with at least one of the below annotation a) @Component b) @Controller c) […]

Share this article on

Autowire using Annotations

1)Instead of using autowiring feature in spring config file, we can use autowiring in the bean class itself. In the config file we will just define the bean but we will autowire them in the class directly. It reduces the xml coding. Lets see how can we do it in spring. In order to support […]

Share this article on
< Previous Next >