How to change Spring Boot port?

Views: 198 Ask New Question

How can i change the default port of springboot from 8080

On By

1 Answer

The default port is 8080 for Spring Boot, and there are 3 ways you can change it
Let say i want to change the default port to 80 from 8080

1. Using

Add the following line in


2. Passing as VM argument

Add the following as your VM argument


3. Via System properties

System.getProperties().put("server.port", 80);, args);
On By

Answer This Question