6.15. 자동 구성을 위한 XML Rest-DSL 경로 추가
Camel Spring Boot 구성 요소는 camel-rest
디렉터리 아래의 classpath에 추가된 Camel Rest-DSL 경로를 자동으로 탐지하고 포함합니다. 구성 옵션을 사용하여 디렉터리 이름을 구성하거나 이 기능을 비활성화할 수 있습니다.
절차
다음과 같이 classpath에서 Camel Spring Boot Rest-DSL XML 경로를 구성합니다.
// turn off camel.springboot.xmlRests = false // scan in the com/foo/routes classpath camel.springboot.xmlRests = classpath:com/foo/rests/*.xml
// turn off camel.springboot.xmlRests = false // scan in the com/foo/routes classpath camel.springboot.xmlRests = classpath:com/foo/rests/*.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 참고Rest-DSL XML 파일은
CamelContext
요소가 아닌 Camel XML REST 요소를 정의해야 합니다. 예를 들면 다음과 같습니다.Copy to Clipboard Copied! Toggle word wrap Toggle overflow