Spring Annotations for Experienced Developers

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

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

  • @SabaNaz-fs6gh
    @SabaNaz-fs6gh 15 часов назад

    Why no playlist for full stack Java

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

    Next chapter ruclips.net/video/K9ythOTQUCc/видео.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 Месяц назад

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

    • @Explore_with_anish
      @Explore_with_anish 11 дней назад

      Use it when business logic scenario example suppose you are calling Any third party API . @Service Annotation is combination of Component + other annotation.