How to Allocate Random/Dynamic Port in Spring Boot Application ?
Fixed Port:
server:
port: 8080
Random/Dynamic Port:
server:
port: 0
other:
if not set server.port then default port is 8080
refer:
https://www.geeksforgeeks.org/spring-boot-random-dynamic-port-allocation/
本文来自博客园,作者:program_keep,转载请注明原文链接:https://www.cnblogs.com/program-keep/p/18840280
浙公网安备 33010602011771号