Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

The magic @SpringBootApplication annotation

Pragya Keshap answered on February 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • @SpringBootApplication
  • @SpringBootApplication
  • Explain @SpringBootApplication, @Configuration and @ComponentScan annotations
  • Spring Boot - @SpringApplicationConfiguration example
  • What is the purpose of the @SpringBootApplication annotation?
  • What is the importance of @SpringBootApplication?
  • SpringBootApplication
  • SpringBootApplication
  • What is an alternative to spring boot application annotation?

  • The magic @SpringBootApplication annotation

    0

    It enables component scanning, that is, looking for Spring components and configuration classes in the package of the application class and all its sub-packages.

    The application class itself becomes a configuration class.

    It enables autoconfiguration, where Spring Boot looks for JAR files in the classpath that it can configure automatically. For example, if you have Tomcat in the classpath, Spring Boot will automatically configure Tomcat as an embedded web server.

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Feb 17 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.