Grails:错误 org.springframework.boot.SpringApplication - 应用程序启动失败
Grails: ERROR org.springframework.boot.SpringApplication - Application startup failed
我想为我的 grails 应用程序设置 Hibernate5 插件,我使用的是 grails 3.1.1。我已经检查过这个问题并遵循了它:
但是我收到以下错误:
ERROR org.springframework.boot.SpringApplication - Application startup failed
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.grails.orm.hibernate.cfg.CollectionType.<init>(Ljava/lang/Class;Lorg/grails/orm/hibernate/cfg/GrailsDomainBinder;)V
与其说是错误,倒不如说 Hibernate 5.1 在 Grails 中还没有(官方)支持 - issue #9783。没有截止日期。
我想为我的 grails 应用程序设置 Hibernate5 插件,我使用的是 grails 3.1.1。我已经检查过这个问题并遵循了它:
但是我收到以下错误:
ERROR org.springframework.boot.SpringApplication - Application startup failed
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.grails.orm.hibernate.cfg.CollectionType.<init>(Ljava/lang/Class;Lorg/grails/orm/hibernate/cfg/GrailsDomainBinder;)V
与其说是错误,倒不如说 Hibernate 5.1 在 Grails 中还没有(官方)支持 - issue #9783。没有截止日期。