84.3. 从外部资源加载常数download PDF 您可以外部化常量,并让 Camel 从资源(如 "classpath:", "file:" 或 "http:" )加载它。这可以通过以下语法完成:" resource:scheme:location",例如引用您可以进行的类路径中的文件: .setHeader("myHeader").constant("resource:classpath:constant.txt")前一个下一个