java获取JVM启动参数 System.getProperty取 -D后的key即可 public class Test { public static void main(String[] args){ System.out.println(System.getProperty("configurePath")); } }
1.端口更改:找到config目录下server.xml文件 如下 <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional informa