Stop replaying events when restart springboot

I have created wallet service with credit and debit command, When ever I restart the springboot and axon server, the commands from eventstore replayed again. but I don’t want to replay the existing event on restart the springboot. I try with annotation @DisallowReplay but no luck.

Axon version 4.5

Hi Babu, thanks for joining discuss and porting the question.
It seems our documentation is lacking, since it also recently came up in a github issue.

The root cause is using an in memory token store, while not being aware of it. I’m thinking we maybe should log a warn message, whenever we create an in memory token store. Would that have helped you?