the correct property to set the server port number in the application property code example Example: change port number in sts server.port=8081