What are beans in spring?
Answer / Rizwan Ali
In Spring Framework, a bean is an object that is managed by the Spring IoC container. Beans can be defined using XML configuration files (applicationContext.xml) or Java-based annotations (@Component, @Service, @Repository, etc.). Once registered as a bean, the IoC container is responsible for creating and managing the lifecycle of the bean.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of springs?
What is the difference between mvc and spring mvc?
Why is spring boot so popular? : Spring Boot
What are the types of dependency injection?
What are the minimum configurations needed to create a spring mvc application?
What is the difference between singleton and prototype bean?
Is spring a link?
What exactly is dependency injection in spring?
What are different bean scopes in spring?
What is the function of model attribute annotation?
What is the scope of spring?
What is difference between @autowired and @resource in spring?