spring-statemachine
spring-statemachine copied to clipboard
Consider defining a bean of type 'org.springframework.statemachine.data.jpa.JpaStateMachineRepository' in your configuration.
Hello guys. I hava tried to use state machine, and i'm stuck on this error: `*************************** APPLICATION FAILED TO START
Description:
Parameter 0 of method stateMachineRuntimePersister in com.bank.bank.loan.statemachine.LoanStateMachineConfig$JpaPersisterConfig required a bean of type 'org.springframework.statemachine.data.jpa.JpaStateMachineRepository' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.statemachine.data.jpa.JpaStateMachineRepository' in your configuration.
Process finished with exit code 0 `
Help me please hot to fix this.
I have used:
<spring-statemachine.version>2.2.3.RELEASE</spring-statemachine.version>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>