random port
server.port=0
Method 1:
@Value("${server.port}") private int serverPort;
You must be logged in to post a comment.