Quarkus 有 Spring AOP 类似物吗?

Does Quarkus have a Spring AOP analogue?

Quarkus 有 Spring AOP 类似物吗?我可以用什么代替 Quarkus 上的 Spring AOP?

谢谢!

Quarkus 使用 CDI 作为依赖注入机制,CDI 提供拦截器,可用于实现与 AOP 提供的功能相同的功能。

你需要做的是定义一个注解,用这个注解注解你想要拦截的方法,然后定义一个拦截器绑定到这个注解。

此处描述:https://quarkus.io/guides/cdi#interceptors and you can find more information on interceptors here: https://docs.jboss.org/weld/reference/latest/en-US/html/interceptors.html