Question from the Spring test

Given the following properties, what is the value of `server.port` and `secret` when the application is started with the options `-Dserver.port=1234 -Dspring.profiles.active=dev`?

Medium

Consider the following properties:

application.properties

server.port: 8080
secret: some-very-secret-not-so-secret-or-maybe

application-dev.properties

server.port: 3000
secret: dev-secret-you-know-what-I-mean

By starting the application with the options -Dserver.port=1234 -Dspring.profiles.active=dev

Author: W3D TeamStatus: PublishedQuestion passed 121 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!