开发者社区 问答 正文

在 Spring 生态中玩转 RocketMQ中春波特为什么建议声明成 static 的?

在 Spring 生态中玩转 RocketMQ中春波特为什么建议声明成 static 的?

展开
收起
vncamyi27xznk 2021-11-11 10:29:11 387 分享 版权
1 条回答
写回答
取消 提交回答
  • "英文原文: If they don't we basically register the post-processor at the same ""time"" as all the other beans in that class and the contract of BPP is that it must be registered very early on. This may not make a difference for this particular class but flagging it as static as the side effect to make clear your BPP implementation is not supposed to drag other beans via dependency injection. 这本电子书收录开发者藏经阁,下载连接:https://developer.aliyun.com/topic/download?id=1216"

    2021-11-11 18:47:56
    赞同 展开评论