JavaIntermediate#spring

What is Spring Boot auto-configuration?

Spring Boot inspects the classpath and existing beans at startup, then automatically configures beans (like a DataSource or DispatcherServlet) based on sensible defaults, drastically reducing manual XML/Java config.

Example
// Adding spring-boot-starter-data-jpa dependency auto-configures
// a DataSource, EntityManagerFactory, and TransactionManager with zero explicit config

Related Questions

1
JavaIntermediate#spring

What is the purpose of @RestController vs @Controller in Spring MVC?

Open
2
JavaAdvanced#spring

What is Spring AOP and what is it used for?

Open
3
JavaAdvanced#spring

What is @Transactional and how does it work in Spring?

Open