What is stereotype annotation in springboot

In Springboot stereotype annotation is an annotation that indicates the role of the component within the Spring framework.

These annotations serve to clearly communicate the purpose of a class, and they help Spring automatically detect and register these classes as bean in applicationContext.
The most common stereotype annotations in Spring are
@Component
@Service
@Repository
@Controller

Author: Susheel kumar

Leave a Reply

Your email address will not be published. Required fields are marked *