类 ClassPathResource

所有已实现的接口:
InputStreamSource, Resource
直接已知子类:
DefaultResourceLoader.ClassPathContextResource

public class ClassPathResource extends AbstractFileResolvingResource
Copy from https://github.com/spring-projects/spring-framework.git, with less modifications Resource implementation for class path resources. Uses either a given ClassLoader or a given Class for loading resources.

Supports resolution as java.io.File if the class path resource resides in the file system, but not for resources in a JAR. Always supports resolution as URL.

从以下版本开始:
28.12.2003
作者:
Juergen Hoeller, Sam Brannen
另请参阅: