87.9. 외부 리소스에서 스크립트 로드
스크립트를 외부화하고 "classpath:"
, "file:"
, "http:"
와 같은 리소스에서 Camel을 로드하도록 할 수 있습니다. 이 작업은 다음 구문을 사용하여 수행됩니다. "resource:scheme:location"
과 같이 수행할 수 있는 classpath의 파일을 참조합니다.
.setHeader("myHeader").simple("resource:classpath:mysimple.txt")
.setHeader("myHeader").simple("resource:classpath:mysimple.txt")