gpt4 book ai didi

spring - Grails:错误org.springframework.boot.SpringApplication-应用启动失败

转载 作者:行者123 更新时间:2023-12-02 14:06:45 26 4
gpt4 key购买 nike

我想将Hibernate5插件设置为我的grails应用程序,我使用grails 3.1.1。我已经检查了这个问题,然后我遵循了它:How to configure Grails 3.1.1 to use Hibernate 5

但是我收到以下错误:

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

最佳答案

与其说是一个错误,不如说是Grails尚未(正式)支持Hibernate 5.1-issue #9783。没有截止日期。

关于spring - Grails:错误org.springframework.boot.SpringApplication-应用启动失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35287393/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com