This Java article describes how to configure and change the default HTTP port of an embedded Tomcat server in a Spring Boot application.
Option-1] Add/Change below line in application.properties file
1 |
server.port=8090 |
OR in application.yml
1 2 |
server: port: 8090 |
Option-2] Modify a VM Option or Run Configuration
1 |
-Dserver.port=8090 |