[Spring] ResourceLoader로 텍스트 파일 출력하기 (Java 11) [Spring] ResourceLoader로 텍스트 파일 출력하기 (Java 11) Spring의 ApplicationContext는 ResourceLoader라는 인터페이스를 상속한다. 이 인터페이스는 이름에서부터 알 수 있듯 리소스를 읽어오는 기능을 제공한다. 1. Resource 객체 얻기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.sprin.. 2020. 3. 5. 이전 1 다음