🏄LiteflowComponent
@LiteflowComponent
注解是继承于Spring的@Component
标签的,所以从作用上来说,和@Component
标签并没有什么区别,但是@LiteflowComponent
新增加了name
属性,用于给组件起别名,在打印调用链的时候会体现。具体请查看打印信息详解章节,新版本开始,推荐大家使用@LiteflowComponent
,当然@Component
也同样可以继续沿用。
所以LiteFlow的组件也是受Spring容器管理的,你可以用Spring注解@AutoWired
或者@Resource
去注入任何其他Bean。
帮助我们改善此文档 (opens new window)
上次更新: 2025/02/16, 21:26:30