FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 487 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 application.properties

Add the following line in application.properties

server.port=80

2. Passing as VM argument

Add the following as your VM argument

-Dserver.port=80

3. Via System properties

System.getProperties().put("server.port", 80);
SpringApplication.run(Start.class, args);
On By


Answer This Question


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News