embedded server in spring boot port configuration code example Example: change port number in sts server.port=8081