---
title: "Discussion on \"#Role of Annotations _ I've never considered 'Why' when using @Controller, @Service, @Repository ….\" | Hashnode"
description: "Discussion on \"#Role of Annotations _ I've never considered 'Why' when using @Controller, @Service, @Repository ….\". #While Enrolling Spring Bean, How Does Annotation Work\n#Foreword\nI've been using this annotation on each class, but I've never considered \"Why\". So, I want to know How Does Annotation Works. Before we begin, we should define class, object, fields, me..."
url: "https://hashnode.com/posts/role-of-annotations-ive-never-considered-why-when-using-controller-service-repository/6625d5d9e1b4b52b44e4afaf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [#Role of Annotations \_ I've never considered 'Why' when using @Controller, @Service, @Repository ….](https://joo.hashnode.dev/role-of-annotations-ive-never-considered-why-when-using-controller-service-repository?utm_source=hashnode&utm_medium=feed)

#While Enrolling Spring Bean, How Does Annotation Work #Foreword I've been using this annotation on each class, but I've never considered "Why". So, I want to know How Does Annotation Works. Before we begin, we should define class, object, fields, me...

Apr 22, 2024 · 3 min read · joo.hashnode.dev  
Read the article

-   [#controller-service-repository](https://hashnode.com/tag/controller-service-repository)
-   [#component-configuration-bean](https://hashnode.com/tag/component-configuration-bean)
-   [#springannotations](https://hashnode.com/tag/springannotations)
-   [#springbean](https://hashnode.com/tag/springbean)

## Written by

[Byung Joo Jeong](https://hashnode.com/@StrivingWay)

@StrivingWay

  
[View profile](https://hashnode.com/@StrivingWay)

#striver

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
