通过java -jar app.jar --name="Spring" --server.port=9090方式来传递参数。 参数用--xxx=xxx的形式传递。 转载于:https://www.cnblogs.com/ldsweely/p/11555192.html