Skip to content
Sharp

Spring Core · interview question

What happens if a Spring Boot application has no application.properties or application.yml file?

Multiple choiceHardchapter-9-curatedpremiumspring-coreapplication-properties
Choose one answer
Answer and explanation

Correct answer

A. Spring Boot will use default settings.

Why

If no application.properties or application.yml file is present, Spring Boot will use its default settings for configuration. This includes default ports and other default parameters.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →