Streamline your workflow with the new MCP server for Red Hat product documentation.Connect your AI tools and LLMs directly to live Red Hat product documentation. Connect now. 63.3. 从外部资源加载常量 您可以对常态进行外部化,并使 Camel 从资源(如 "classpath:"、"file:" 或 "http:" )加载。这可通过以下语法完成: "resource:scheme:location",例如参考类路径上的文件,您可以执行以下操作: .setHeader("myHeader").constant("resource:classpath:constant.txt") 前一个下一个