# Springboot - Bean selection

**URL:** <https://forum.codewithmosh.com/t/springboot-bean-selection/72170>\
**Category:** Uncategorized\
**Created:** [January 22, 2026, 8:26pm UTC](https://forum.codewithmosh.com/t/springboot-bean-selection/72170 "2026-01-22T20:26:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kritiJha](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kritiJha](https://forum.codewithmosh.com/u/kritiJha)\
**Post date:** [January 22, 2026, 8:26pm UTC](https://forum.codewithmosh.com/t/springboot-bean-selection/72170/1 "2026-01-22T20:26:04Z")

</div>

Hey Everyone. I Am Currently Learning Spring Boot (Part 1) and I am at “cONTROLLING bEAN sELECTION” TOPIC. Here, rather than adding @service annotation and categorizing them as primary or qualifying can we not directly put @service annotation at the interface class that is implemented by these 2 classes. I did this by mistake and I did not add @service to the implementing classes and it ran fine for me for both the implementing classes.

Can anyone help me understand if we are not using this directly

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/0/0b318c9c6d80e894e750d56936ccbab44f16fa51.png)

---

<div class="post-metadata">

**Author:** ![kritiJha](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kritiJha](https://forum.codewithmosh.com/u/kritiJha)\
**Post date:** [January 22, 2026, 8:28pm UTC](https://forum.codewithmosh.com/t/springboot-bean-selection/72170/2 "2026-01-22T20:28:04Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/c7e4256a5788d77e63d695d208efcc47012bdbfe.png)
