Issue
what is the difference between below two statements in application.properties file in spring boot.
server.port =8080 and server.port = ${PORT:8080}
please help with the explanation
Solution
server.port = ${PORT:8080}
will check for an environment variablePORT
and take its value , if not present defaults to8080
.server.port =8080
will always be8080
Answered By - Jishnu Prathap
Answer Checked By - David Goodson (JavaFixing Volunteer)