SpringBoot使用端口运行

通过java -jar app.jar --name="Spring" --server.port=9090方式来传递参数。

参数用--xxx=xxx的形式传递。

原文地址:https://www.cnblogs.com/ldsweely/p/11555192.html