Skip to content
Sharp

Spring Core · interview question

How does Spring Boot's auto-configuration decide which beans to create?

Multiple choiceHardchapter-9-curatedpremiumspring-coreinversion-of-control-ioc
Choose one answer
Answer and explanation

Correct answer

B. It uses the classpath and existing configurations.

Why

Spring Boot's auto-configuration uses the classpath, existing beans, and various property settings to decide which beans should be created. It aims to minimize the need for explicit configuration, streamlining the setup process.

Test yourself on Spring Core

A free test with instant, explained results. No account needed.

Start free test
All Spring Core questions →