Add and specify port on Spring Boot application

Change port on Spring Boot application

In order to change the default port which is 8080 we need to change the server.port property in the configuration file.

server:
  port: 8080