We can update the server.port property in application.properties to change the default port in Spring Boot.
$ git clone https://github.com/mkyong/spring-boot.git
$ cd spring-boot-change-port
$ mvn spring-boot:run