how to change default spring boot port code example Example: change port number in sts server.port=8081