When running our spring application as a jar, we can set the server.port Command-Line argument with the java command :

java -jar spring.jar --server.port=8082
Tagged:

Commentaires

  1. Pingback: (Solved) How to Change the Default Port in Spring Boot using Java Config ?

Laisser un commentaire