Skip to content

Spring Framework Blog

Menu
  • Home
  • Spring
  • Spring Boot
  • About
Menu

Spring Boot configuration

Posted on November 22, 2023June 18, 2024 by Armando Marques

Table of Contents

Toggle
  • Annotations
    • SpringBootConfiguration

Annotations

Autoconfiguration is enabled by @EnableAutoConfiguration.

@SpringBootConfiguration -> extends @Configuration
@ComponentScan("..")
@EnableAutoConfiguration
public class Application {
 public static void main(String[] args){
  SpringApplication.run(Application.class,args);
 }

}

SpringBootConfiguration

Annotation @SpringBootApplication comprehends the following annotations:

  • @EnableAutoConfiguration
  • @ComponentScan
  • @SpringBootConfiguration
@SpringBootApplication(scanBasePackages="..")
public class Application{
}

@SpringBootConfiguration – Indicates that a class provides Spring Boot application @Configuration. Can be used as an alternative to the Spring’s standard @Configuration annotation so that configuration can be found automatically (for example in tests).

    • Spring
    • Documentation
    • References
    • Toc
    • Books
    • Certification
    • AOP
    • Config
    • Java
    • Java core
    • JDBC
    • JPA
    • Rest
    • Security
    • Spring
    • Spring Boot
    • Spring Core
    • Spring Data
    • Spring MVC
    • Spring Rest
    • Spring Security
    • Tests
    • Transactions
    • Uncategorized

    Recent Posts

    • Spring Annotations
    • Java Tests
    • Java operators
    • Java versions
    • Java Oracle Licenses
    • Configuration properties
    • MockMvc
    • Spring Security III
    • MVC Controller Method Params
    • JPA Methods
    • Transaction propagation and isolation
    • Spring JDBC
    • Spring Boot Auto-Configuration
    • Spring Resource interface
    • JSR 330 Standard Annotations
    • Spring Aware Interfaces
    • Spring Transactions
    • Spring Boot Core
    • MVC Rest
    • Spring Boot JPA
    ©2025 Spring Framework Blog | Built using WordPress and Responsive Blogily theme by Superb