← Quiz: Spring Boot Basics: all 10 questions
Quiz: Spring Boot Basics · Question 10 of 10
A application-prod.properties file and the main application.properties both set server.port. The app runs with the prod…
A application-prod.properties file and the main application.properties both set server.port. The app runs with the prod profile. Which value is used?
- A.The one in application.properties
- B.The smaller number
- C.Spring refuses to start
- D.The one in application-prod.properties
Answer & explanation
Correct answer: The one in application-prod.properties
Profile-specific files override the main file.
Can you get the rest right without peeking?
Take the timed Quiz: Spring Boot Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →