Back to course

What are Spring Beans?

Spring Boot 0 to Hero: The Complete Java Backend Masterclass

Understanding Beans

A 'Bean' is simply an object that is instantiated, assembled, and managed by the Spring IoC container.

You define a class as a bean by using annotations like @Component, @Service, or @Repository.