SpringBootApplication (Spring Boot 3.4.5 API) (original) (raw)


Indicates a configuration class that declares one or more@Bean methods and also triggers auto-configuration and component scanning. This is a convenience annotation that is equivalent to declaring @SpringBootConfiguration,@EnableAutoConfiguration and @ComponentScan.

Since:

1.2.0

Author:

Phillip Webb, Stephane Nicoll, Andy Wilkinson

Optional Elements
Exclude specific auto-configuration classes such that they will never be applied.
Exclude specific auto-configuration class names such that they will never be applied.
The BeanNameGenerator class to be used for naming detected components within the Spring container.
boolean
Specify whether @Bean methods should get proxied in order to enforce bean lifecycle behavior, e.g.
Type-safe alternative to scanBasePackages() for specifying the packages to scan for annotated components.
Base packages to scan for annotated components.