different ways to change server port in spring boot code example Example: change spring port server.port=8081