我是Grails Framework的新手。我用Grails-2.3.4版本来开发应用程序。
我创建了域类test.User
,然后运行了命令generate-all
。
发生以下错误。命令为grails generate-all test.User
2013-12-07 00:27:12,703 [Thread-8] ERROR plugins.AbstractGrailsPluginManager - Plugin [domainClass:2.3.4] could not reload changes to file [F:\Workspace\ggts\TestApp\grails-app\domain\test\User.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]
我在不同的论坛中搜索了这个问题。我无法得到正确的解决方案。我官方的Grails网站他们提到它是用grails-2.3.4版本修复的。但我仍然面临着这个问题。
答案 0 :(得分:0)
您是否尝试过禁用分叉模式?这导致了2.3.4中的问题。这是否适用于旧版本?也许你的测试包。导致问题。
// configure settings for the test-app JVM, uses the daemon by default
test: false,//test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
// configure settings for the run-app JVM
run:false,//run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],