ricadro
V2EX  ›  Java

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

  •  
  •   ricadro · Apr 1, 2022 · 1823 views
    This topic created in 1577 days ago, the information mentioned may be changed or developed.

    请教各位大佬一个问题,就是 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.
    ====
    
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 20:28 · PVG 04:28 · LAX 13:28 · JFK 16:28
    ♥ Do have faith in what you're doing.