Sample answer: "The port is the server.port property, default 8080, so it follows the normal property order. A command-line --server.port beats a system property, which beats the SERVER_PORT env variable, which beats application.properties. Port 0 picks a random free port."
Medium
java
spring