线上问题诊断神器,arthas
https://alibaba.github.io/arthas/arthas-tutorials?language=cn
获取配置文件位置
- 使用Java代码可以获取到tomcat所在路径
- Java —> shell —> shell 返回
pwd+ 文件名称,用于读取配置信息
获取配置文件的
// 创建属性集对象Properties pro = new Properties();// 加载文本中信息到属性集pro.load(new FileInputStream("read.txt"));// 遍历集合并打印Set<String> strings = pro.stringPropertyNames();for (String key : strings ) {System.out.println(key+" ‐‐ "+pro.getProperty(key));}
