deanisty commented on issue #351:
URL: 
https://github.com/apache/rocketmq-spring/issues/351#issuecomment-1185346645

   > 
   
   我自己写了AOP并配合配置中心的配置,在不需要消费者的项目里统一把消费者取消注入了。
   具体就是AOP切面切入 ListenerContainerConfiguration.afterSingletonsInstantiated() 
方法,然后around()方法不做任何操作直接返回void,以此达到不注入所有用RocketMQMessageListener注解的消费者实例,切面类本身用外部配置配合ConditionalOnProperty注解控制,可以实现用不同的配置打开或者关闭这个AOP的功能。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to