Spring Boot Auto Configuration | Example

Поделиться
HTML-код
  • Опубликовано: 28 июл 2024
  • In this video, let's understand how spring boot auto configuration works internally.
    Table of Contents:
    1. Intro ( 00:00)
    2. What is Spring Boot Auto-configuration ( 1:45 )
    3. Why do we need Spring Boot Auto Configuration? (2:35)
    4. Spring Boot Auto Configuration - theory (5:18)
    5. Spring Boot Auto-Configuration in action ( 6:55)
    6. Where is Spring Boot Auto Configuration implemented? (16:00)
    #SpringBoot #JavaGuides
    Spring Boot Auto-configuration:
    Spring Boot auto-configuration attempts to automatically configure your Spring application based on the jar dependencies that you have added.
    - All auto-configuration logic is implemented in spring-boot-autoconfigure.jar.
    - @ConditionalOnClass: This configuration is enabled only when these classes are available in the classpath.
    - @ConditionalOnMissingBean: This bean is configured only if there is no other bean configured with the same name.

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

  • @JavaGuides
    @JavaGuides  3 года назад +1

    Table of Contents:
    1. Intro ( 00:00)
    2. What is Spring Boot Auto-configuration ( 1:45 )
    3. Why do we need Spring Boot Auto Configuration? (2:35)
    4. Spring Boot Auto Configuration - theory (5:18)
    5. Spring Boot Auto-Configuration in action ( 6:55)
    6. Where is Spring Boot Auto Configuration implemented? (16:00)

  • @Cavdar2012
    @Cavdar2012 3 года назад

    Very informative, thank you!

  • @javatechnology4481
    @javatechnology4481 3 года назад

    Beautifully explained with an example 👍

  • @sharmarahul17
    @sharmarahul17 Год назад

    Excellent information. Thanks👌

  • @sathishkumarr7106
    @sathishkumarr7106 2 года назад

    Very very useful video 👌🏻👌🏻

  • @nguyendinhnguyen1167
    @nguyendinhnguyen1167 3 года назад

    Good video thank you

  • @sharmarahul17
    @sharmarahul17 Год назад

    Excellent explanation

  • @abhaynishu
    @abhaynishu 2 года назад

    Very nice explanation

  • @yatri6329
    @yatri6329 3 года назад +1

    Sir what is classpath path I don't have a clear picture of this when u explain autoconfiguration

    • @JavaGuides
      @JavaGuides  3 года назад +5

      Classpath is location where your jar files ( contains . class files) present. Whenever you add maven dependency to pom.xml, maven will download that dependency as JAR file and add to the classpath. Spring boot app refer to the classpath where all the jars files located.

    • @yatri6329
      @yatri6329 3 года назад

      @@JavaGuides thanks 🤗

  • @franklinaro3534
    @franklinaro3534 3 года назад

    What is classpath?

    • @JavaGuides
      @JavaGuides  3 года назад +2

      Classpath is location where your jar files ( contains . class files) present. Whenever you add maven dependency to pom.xml, maven will download that dependency as JAR file and add to the classpath. Spring boot app refer to the classpath where all the jars files located.