run spring boot from console change port code example Example: change port number in sts server.port=8081