如何在java类里获取tomcat容器的绝对路径=

如题所述

可以通过“ 类名.class.getResource("").getPath()”方法实现。
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答