For Techs.... Techniques.... Technologies....


How to change the default port of Spring Boot application during runtime

Spring Boot application uses the port 8080 bydefault. But we can change the port during runtime if needed.

The required port number need to specified as the argument of java command.

#java -Dserver.port=PORT -jar target/*.jar

Where PORT need to be replaced with the required port number.

That's all…