how to put server port in application.yml in springboot code example Example 1: change spring port server.port=8081 Example 2: spring port server.port=8081