Spring Annotations for Experienced Developers

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 6

  • @bit_syans
    @bit_syans  Рік тому +5

    Next chapter ua-cam.com/video/K9ythOTQUCc/v-deo.htmlfeature=shared

    • @bit_syans
      @bit_syans  Рік тому +4

      Thanks to those 100+ new subscribers, this means a lot.

  • @oxyfellowship
    @oxyfellowship 2 місяці тому +1

    Great overview of Spring annotations! Quick question: when would you recommend using @Component vs. @Service in a Spring Boot project? Are there specific scenarios where one is better than the other? #springboot #java

    • @bit_syans
      @bit_syans  2 місяці тому +1

      Use @Service for business logic and @Component for general-purpose beans.

    • @girishanker3796
      @girishanker3796 2 місяці тому +1

      @Service uses @Component under the hood. So its more like a design principle for maintaining clean code.

    • @sarkar_957
      @sarkar_957 19 днів тому

      ​@@girishanker3796 Correct, as well as it provides metadata rather than general purpose use