🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The one in application.properties
  2. B.The smaller number
  3. C.Spring refuses to start
  4. 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 →