gpt4 book ai didi

grails-2.5 - 将grails版本从2.4.5升级到2.5.0时如何解决BeanCreationException问题?

转载 作者:行者123 更新时间:2023-12-01 11:29:19 24 4
gpt4 key购买 nike

我正在将 grails 版本从 2.4.5 升级到 2.5.0。运行我的项目时出现的问题是-

Error initializing the application: Error creating bean with name 'com.athena.mis.application.model.ListSupplierActionServiceModelValidator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator.setProxyHandler(org.codehaus.groovy.grails.support.proxy.ProxyHandler); nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$100(Lorg/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor;)Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.athena.mis.application.model.ListSupplierActionServiceModelValidator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator.setProxyHandler(org.codehaus.groovy.grails.support.proxy.ProxyHandler); nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$100(Lorg/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor;)Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory;

ListSupplierActionServiceModel 是我项目中的常规类,它的缓存使用是只读的。

最佳答案

我很难修复这个...

只需删除 grails 项目根文件夹中的 .slcache 目录即可!

关于grails-2.5 - 将grails版本从2.4.5升级到2.5.0时如何解决BeanCreationException问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34436015/

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