spring boot set port programmatically code example Example: change port in spring boot server.port=8081