tomcat和weblogic 通用方法 通过classLoader String classPath=Thread.currentThread().getContextClassLoader().getResource("").getPath();