You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
We have created a sample application through https://start.spring.io/, add Gorm8.0 and one simple domain class:
domain class
Springboot 3.1.3
Gorm 8.0.0
JDK 17.0.8
got these errors:
we changed build.gradle like that ,still got wrong:
how to fix it ?
The text was updated successfully, but these errors were encountered: