[Spring-boot] configuration random port

The first:

server.port=0

The second:

// customize a range

server.port=${random.int[1024,9999]}

 

Guess you like

Origin www.cnblogs.com/anny0404/p/11009691.html