What are beans?
- An object that is instantiated, assembled and managed by the Spring Inversion of Control (IoC) container
- Another definition: forms the backbone of your applications that are managed by the Spring IoC container
To put it simply, these objects are created automatically for these classes so that you never have to manage them.
For example, annotations like:
@RestController@Componentthat are placed on classes will automatically have instances created for those classes. Those instances are called Spring beans basically.
Note that by doing these