When does the auto-configuration process occur in the lifecycle of a Spring Boot application?

  • After the application has started.
  • Before application deployment.
  • During application initialization.
  • During application shutdown.
The auto-configuration process in Spring Boot occurs during application initialization. It's one of the first steps in the application's lifecycle, where Spring Boot scans the classpath, identifies relevant auto-configuration classes, and configures the application accordingly. This ensures that the required beans and settings are in place before the application starts processing requests.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *