ricadro
V2EX  ›  Java

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

  •  
  •   ricadro · Apr 1, 2022 · 1777 views
    This topic created in 1552 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   ·   3447 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:58 · PVG 18:58 · LAX 03:58 · JFK 06:58
    ♥ Do have faith in what you're doing.