Java 在DemoController.class中使用@EnableBinding会导致spring aop失败

Java 在DemoController.class中使用@EnableBinding会导致spring aop失败,java,spring,spring-cloud,spring-aop,spring-cloud-stream,Java,Spring,Spring Cloud,Spring Aop,Spring Cloud Stream,在我的应用程序中,在DemoController.class上使用@EnableBinding会导致我的日志方面失败,不再有日志记录。 而且,如果删除@EnableBinding,日志方面就可以工作 UspeController.class如下: @RestController @请求映射(“/yes/user”) @EnableBinding({OpenFileSystemOutput.class}) 公共类UspeController{ @自动连线 OpenFileSystemOutput

在我的应用程序中,在DemoController.class上使用@EnableBinding会导致我的日志方面失败,不再有日志记录。
而且,如果删除@EnableBinding,日志方面就可以工作

UspeController.class如下:

@RestController
@请求映射(“/yes/user”)
@EnableBinding({OpenFileSystemOutput.class})
公共类UspeController{
@自动连线
OpenFileSystemOutput OpenFileSystemOutput;
@PutMapping(value=“/applyAccount”)
公共结果applyAccount()引发异常{
UserMessage UserMessage=newusermessage(UserInfoContext.getUserId());
openFileSystemOutput.output().send(MessageBuilder.withPayload(userMessage.build());
返回结果。成功(“”);
}
}
记录如下方面:

@方面
公共类日志方面{
@切入点(“在(com.yeah..*)&&&target(org.springframework.web.bind.annotation.RestController)内)
public void executionService(){
}
@在(value=“executionService()”)之前
公共作废日期(JoinPoint JoinPoint){
log.info(“Api接口:[{}],参数:{}”,request.getRequestURI(),JSON.toJSONString(getSerializableObject(joinPoint));
}
}

从3.1.x版本的Spring Cloud Stream开始,不推荐使用
启用绑定。如果可以,请升级代码以使用最新的功能模型。有关更多详细信息,请参阅文档中的部分。

谢谢您的回答。这是个好建议。我找到了失败的原因。看来“@EnableBinding”和“@Aspect”是不可兼容的。因此它导致@Aspect在“uspeconcontroller”中不起作用。将切入点更改为“@pointcut(“*execution(com.yeah.*.*(…)””),日志方面就可以工作了。如果在joinPoint中调试,您将看到USPECONTROLLERBean代理丢失了注释“@RestController”。但我不明白为什么?