V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ricadro
V2EX  ›  Java

怎么样可以在使用 @EnableStateMachineFactory 的情况生成状态机时使 @WithStateMachine 生效

  •  
  •   ricadro · 2022-04-01 22:13:42 +08:00 · 1159 次点击
    这是一个创建于 770 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请教各位大佬一个问题,就是 Spring StateMachine 怎么样可以在使用 @EnableStateMachineFactory 的情况生成状态机时使 @WithStateMachine 生效,下面这段是官方文档上的一个说明,看不太懂表达的是什么意思,在哪个地方设置 BeanFactory ? machineId 是不同的

    [IMPORTANT]
    ====
    If machine is not created as a _Bean_ then it is mandatory to set
    _BeanFactory_ for a machine as shown above. Otherwise machine will be
    unaware of handlers calling your _@WithStateMachine_ methods.
    ====
    
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2971 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:11 · PVG 23:11 · LAX 08:11 · JFK 11:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.