Code Monkey home page Code Monkey logo

Comments (4)

royalzzz avatar royalzzz commented on June 11, 2024 3

Spring-boot 3.0 is not compatible spring-statemachine 2.2.3. Spring data jpa with spring boot 3.0 depends on package of jakarta.persistence , instead of javax.persistence. Personally, I think that spring statemachine needs to wait for the release of a new version to support boot 3.0.

And spring boot 3.0 is not using spring.factories to enable auto configure, I found that file still used in statemachine.

Recently, I also have encountered this problem when using statemachine version 3.2.0.

from spring-statemachine.

chakradhar4 avatar chakradhar4 commented on June 11, 2024

Make sure you have added the dataJpa dependency

It works if you add
//@EnableJpaRepositories("org.springframework.statemachine.data.jpa")
//@EntityScan("org.springframework.statemachine.data.jpa")

in your main method classs

from spring-statemachine.

royalzzz avatar royalzzz commented on June 11, 2024

I tried. It doesn't work.

from spring-statemachine.

schmittcn avatar schmittcn commented on June 11, 2024

for me this also works with mongodb, java 17 and spring boot 3 when using statemachine version 3.2.0:
@EnableMongoRepositories({"org.springframework.statemachine.data.mongodb"})
@EntityScan("org.springframework.statemachine.data.mongodb")

but finally the statemachine library should be updated for compatibility with spring boot 3

from spring-statemachine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.