ClassPathResourceFilePathResolver Class — spring-boot Architecture
Architecture documentation for the ClassPathResourceFilePathResolver class in ClassPathResourceFilePathResolver.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/io/ClassPathResourceFilePathResolver.java lines 31–42
class ClassPathResourceFilePathResolver implements ApplicationResourceLoader.FilePathResolver {
@Override
public @Nullable String resolveFilePath(String location, Resource resource) {
return (resource instanceof ClassPathResource && !isClassPathUrl(location)) ? location : null;
}
private boolean isClassPathUrl(String location) {
return location.startsWith(ResourceLoader.CLASSPATH_URL_PREFIX);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free