### Question:
ClassUtils extends org.springframework.util.ClassUtils { public static Resource getClassesRootResource(Class<?> clazz) { String classesRoot = ""; try { Resource clazzResource = getResource(clazz); if (isInJar(clazzResource)) { return null; } String file = clazzResource.getURL().getFile(); String clazzPath = convertClassNameToResourcePath(clazz.getName()); String[] arr = file.split(clazzPath); classesRoot = arr[0]; } catch (Exception e) { log.error(e.getMessage(), e); } return new FileSystemResource(classesRoot); }  static boolean isInJar(Class<?> clazz); static boolean isInJar(Resource resource); static Resource getResource(Class<?> clazz); static Resource getClassesRootResource(Class<?> clazz); static String getClassesRootPath(Class<?> clazz);  }### Answer:
@Test public void testGetClassesRootResource() { Resource resource = ClassUtils.getClassesRootResource(getClass()); Assert.assertNotNull("org.webframe.support.util.ClassUtils不在jar包中！", resource); Assert.assertTrue("org.webframe.support.util.ClassUtils类文件应该存在！", resource.exists()); }