String className = ResourcePathTester.class.getName(); String classNamePath = className.replace('.', '/') + '.class'; URL is = ResourcePathTester.class.getClassLoader().getResource(classNamePath); String path = is.getFile(); path = StringUtils.replace(path, '%20', ' '); return StringUtils.removeStart(path, '/');
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。