
请教各位大佬一个问题,就是 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. ====