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

Tell me About SpringBoot’s Entry point. What it does do? What component scan does? how to exclude any configuration?

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

Contents


More Related Answers

  • Where can you define properties in Spring Boot application?
  • Can you name some common Spring Boot Starter POMs?
  • Where would you typically find a maven Spring Boot configuration file?
  • What is the name of the configuration file which you can use in Spring Boot?
  • What is Spring Boot and mention the need for it?
  • How do you find more information about your application envrionment using Spring Boot?

  • Tell me About SpringBoot’s Entry point. What it does do? What component scan does? how to exclude any configuration?

    0

    Many Spring Boot developers like their apps to use auto-configuration, component scan, and be able to define extra configuration on their “application class”. A single @SpringBootApplication annotation can be used to enable those three features, that is:

    @EnableAutoConfiguration: enable Spring Boot’s auto-configuration mechanism

    @ComponentScan: enable @Component scan on the package where the application is located (see the best practices)

    @Configuration: allow to register extra beans in the context or import additional configuration classes

    The @SpringBootApplication annotation is equivalent to using @Configuration, @EnableAutoConfiguration, and @ComponentScan with their default attributes, 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 21 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.