패캠 초격차 Part1. Spring Framework-Ch.02 필기노트
Spring 내부 Resource 구현체 중 대표 몇가지
java.net.URL을 래핑한 버전, 다양한 종류(prefix로 접근 유형 판단)의 Resource에 접근 가능하지만 기본적으로는 http, https로 원격접근
classpath 하위의 리소스 접근시 사용 (소스코드 빌드 결과 : 기본적으로 target/classes 폴더)
이름과 같이 file을 다루기 위한 리소스 구현체
Sevlet 어플리케이션 루트 하위 파일, InputStram, ByteArrayInput 스트림을 가져오기 위한 구현체
스프링 프로젝트 내 Resource에 접근할때 사용하는 기능
스프링 ApplicationContext에서 ResourceLoader를 불러올 때 사용하는 Interface
위치 지정자 패턴에 따라 자동으로 Resource 로더 구현체를 선택
applicationContext(스프링핵심설정)을 이루는 설정값을 가져오는 방법들
ApplicatonContext ctx = new ClassPathXmlApplicationContext("conf/appContext.xml);
Bear bear = (Bear) ctx.getBean("bear");