Skip to content
Sharp

Spring Core · interview question

How can you externalize configuration in a Spring Boot application?

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

Correct answer

B. By defining properties in application.properties or application.yml

Why

Spring Boot allows you to externalize configuration by defining properties in application.properties or application.yml files, which can be overridden by environment variables or command-line arguments.

Test yourself on Spring Core

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

Start free test
All Spring Core questions →