我正在关注 Mike Kelly 精彩的教程视频,但我被以下问题所困扰。当我添加新的域类时会发生这种情况。我尝试过撤销更改并添加具有不同名称的 DomainClass、重新启动 IDE 等。只有一个域类时,我没有错误,如果我添加一个,则会出现错误。
我正在使用 ggts 3.4.0、Grail 2.3.1、JDK 1.7.0_45。
| Error 2013-11-04 21:56:37,442 [Thread-8] ERROR plugins.AbstractGrailsPluginManager - Plugin [domainClass:2.3.1] could not reload changes to file [C:\Grails\ProjectTracker\grails-app\domain\projecttracker\EndUser.groovy]: Ambiguous method overloading for method grails.spring.BeanBuilder#registerBeans.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[interface org.codehaus.groovy.grails.commons.spring.RuntimeSpringConfiguration]
[interface org.springframework.beans.factory.support.BeanDefinitionRegistry]
Message: Ambiguous method overloading for method grails.spring.BeanBuilder#registerBeans.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[interface org.codehaus.groovy.grails.commons.spring.RuntimeSpringConfiguration]
[interface org.springframework.beans.factory.support.BeanDefinitionRegistry]
Line | Method
->> 2980 | chooseMostSpecificParams in groovy.lang.MetaClassImpl
最佳答案
这是一个错误。我在调查时能够重现该问题http://jira.grails.org/browse/GRAILS-10735 。
关于grails - 方法 grails.spring.BeanBuilder#registerBeans 的不明确方法重载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19778136/