[spring-boot] 配置随机端口

第一种:dom

server.port=0server

第二种:

//自定义一个范围

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

相关文章
相关标签/搜索