简体   繁体   English

Apache 骆驼 Spring 开机

[英]Apache Camel Spring Boot

I have one question considering apache camel.Is there posibility to create global interceptor through code for example like AOP?考虑到 apache 骆驼,我有一个问题。是否可以通过诸如 AOP 之类的代码创建全局拦截器? That interceptor should skip endpoints or mock them?该拦截器应该跳过端点或模拟它们吗?

Thanks in advance提前致谢

You could use the intercept feature in Camel.您可以使用 Camel 中的拦截功能。

From the docs .文档

You can think of it as a AOP before that is applied at each DSL keyword you have defined in your route."您可以将其视为 AOP,然后再将其应用于您在路由中定义的每个 DSL 关键字。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM