As said in docs either set server.port
as system property using command line option to jvm -Dserver.port=8090
or add application.properties
in /src/main/resources/
with
server.port=8090
For random port use
server.port=0
Similarly add application.yml
in /src/main/resources/
with
server:
port : 8090
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…