I wrote the implementation of the state machine, using the Spring guide.
But I can’t achieve any reaction for changing the states, although the states themselves change successfully. Perhaps I misunderstood the goal of the Beans class? I need to achieve automatic execution of the closeDoor() and startMoving() methods when the corresponding state changes.
These messages in the methods on the console are not displayed:
And the launch (the states are displayed correctly in the console, according to the events):