spring-statemachine icon indicating copy to clipboard operation
spring-statemachine copied to clipboard

Consider defining a bean of type 'org.springframework.statemachine.data.jpa.JpaStateMachineRepository' in your configuration.

Open Spartaques opened this issue 1 year ago • 4 comments

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> 3.0.1

Spartaques avatar Feb 19 '23 14:02 Spartaques