Spring Annotations for Experienced Developers

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 5

  • @oxyfellowship
    @oxyfellowship 15 дней назад +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  15 дней назад +1

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

    • @girishanker3796
      @girishanker3796 13 дней назад +1

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

  • @bit_syans
    @bit_syans  Год назад +4

    Next chapter ruclips.net/video/K9ythOTQUCc/видео.htmlfeature=shared

    • @bit_syans
      @bit_syans  Год назад +4

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