top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is a Spring Bean?

+1 vote
566 views
What is a Spring Bean?
posted Aug 31, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
The objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is instantiated, assembled, and otherwise managed by a Spring IoC container. These beans are created with the configuration metadata that you supply to the container.

1 Answer

0 votes

Any normal java class that is initialized by Spring IoC container is called Spring Bean. We use Spring ApplicationContext to get the Spring Bean instance.

Spring IoC container manages the life cycle of Spring Bean, bean scopes and injecting any required dependencies in the bean.

answer Sep 5, 2017 by Ayush Srivastav
...