Challenge - 5 Problems
Application.properties Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediate2:00remaining
What is the effect of this application.properties setting?
Given the following line in
What will be the port number your Spring Boot application listens on?
application.properties:server.port=8081What will be the port number your Spring Boot application listens on?
Attempts:
2 left
💡 Hint
The
server.port property controls the HTTP port.✗ Incorrect
Setting
server.port=8081 changes the default port from 8080 to 8081.📝 Syntax
intermediate2:00remaining
Which line correctly sets a custom application name in application.properties?
You want to set the application name to "MyApp" using
application.properties. Which option is correct?Attempts:
2 left
💡 Hint
Properties files use key=value format without quotes.
✗ Incorrect
The correct syntax is
key=value without quotes or other symbols.🔧 Debug
advanced2:00remaining
What error occurs with this application.properties line?
Consider this line in
What happens when Spring Boot tries to start?
application.properties:spring.datasource.url jdbc:mysql://localhost:3306/dbWhat happens when Spring Boot tries to start?
Attempts:
2 left
💡 Hint
Check the syntax for key-value pairs in properties files.
✗ Incorrect
Missing '=' between key and value leaves spring.datasource.url unset, leading to BeanCreationException due to missing URL.
❓ state_output
advanced2:00remaining
What is the value of
logging.level.root after loading this application.properties?Given these lines in
What is the effective logging level for the root logger?
application.properties:logging.level.root=INFOlogging.level.org.springframework=DEBUGWhat is the effective logging level for the root logger?
Attempts:
2 left
💡 Hint
Specific package levels override root, but root applies globally.
✗ Incorrect
The root logger level is set to INFO explicitly; package-specific DEBUG does not change root.
🧠 Conceptual
expert2:00remaining
Which statement about application.properties loading order is true?
In Spring Boot, which of these statements about
application.properties loading order is correct?Attempts:
2 left
💡 Hint
Think about how Spring Boot prioritizes external vs internal config.
✗ Incorrect
Spring Boot loads external config files last, which override packaged defaults.