Spring Resource
Resource Interfaceμ κ·Έ ꡬν체λ€
public interface Resource extends InputStreamSource {
boolean exists();
boolean isReadable();
boolean isOpen();
boolean isFile();
URL getURL() throws IOException;
URI getURI() throws IOException;
File getFile() throws IOException;
ReadableByteChannel readableChannel() throws IOException;
long contentLength() throws IOException;
long lastModified() throws IOException;
Resource createRelative(String relativePath) throws IOException;
String getFilename();
String getDescription();
}Resource ꡬν체 λͺ©λ‘
UrlResource
ClassPathResource
FileSystemResource
SevletContextResource, InputStreamResource, ByteArrayResource
Spring ResourceLoader
ResourcePatternResolver
Application Contexts & Resource Paths
Last updated