Warning: Undefined array key "amp-addthis" in /home/tgagmvup/onlinestudy.guru/wp-content/plugins/addthis/backend/AddThisSharingButtonsFeature.php on line 101
lang="en-US"> What is stereotype annotation in springboot - onlinestudy.guru
Site icon onlinestudy.guru

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

Exit mobile version