🎙 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 3 of 10

How do you start the app with the prod profile?

How do you start the app with the prod profile?

  1. A.--spring.profiles.active=prod
  2. B.--profile=prod
  3. C.-Dprod=true
  4. D.Rename the jar to prod.jar
Answer & explanation

Correct answer: --spring.profiles.active=prod

Or set SPRING_PROFILES_ACTIVE=prod.

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 →