String className = Appender.class.getName(); className = className.replace('.', '/'); String resource = "/" + className + ".class"; URL url = Appender.class.getResource(resource); System.out.println(url.getFile());
posted on 2023-06-06 14:06 anpeiyong 阅读(4) 评论(0) 编辑 收藏 举报