Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to support springboot 3.x ? #751

Closed
xp13910818313 opened this issue Sep 11, 2023 · 3 comments
Closed

how to support springboot 3.x ? #751

xp13910818313 opened this issue Sep 11, 2023 · 3 comments

Comments

@xp13910818313
Copy link

xp13910818313 commented Sep 11, 2023

We have created a sample application through https://start.spring.io/, add Gorm8.0 and one simple domain class:
domain class

@Entity
class Book {
    String title
}

Springboot 3.1.3
Gorm 8.0.0
JDK 17.0.8
got these errors:

java.lang.IllegalStateException: Either class [com.example.Book] is not a domain class or GORM has not been initialized correctly or has already been shutdown. Ensure GORM is loaded and configured correctly before calling any methods on a GORM entity.
   at org.grails.datastore.gorm.GormEnhancer.stateException(GormEnhancer.groovy:467) ~[grails-datastore-gorm-8.0.0.jar:na]
   at org.grails.datastore.gorm.GormEnhancer.findInstanceApi(GormEnhancer.groovy:315) ~[grails-datastore-gorm-8.0.0.jar:na]

we changed build.gradle like that ,still got wrong:

dependencies {
    implementation("org.grails:gorm-hibernate5-spring-boot:8.0.0"){
        exclude module: "groovy"
    }
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.codehaus.groovy:groovy:3.0.19'
    //implementation 'org.apache.groovy:groovy'
}

how to fix it ?

@puneetbehl
Copy link
Contributor

Currently, Grails 6.0 does not support Spring Boot 3. We are planning to support it with Grails 7.

@xp13910818313
Copy link
Author

thanks

@xp13910818313
Copy link
Author

@puneetbehl , when will release GORM 9.0.X ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants