gpt4 book ai didi

spring - grails- 2.3.4 generate-all命令不起作用

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

我是Grails框架的新手。我采用了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版本中修复。但我仍然面临这个问题。

最佳答案

您是否尝试过禁用fork模式?这导致了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],

关于spring - grails- 2.3.4 generate-all命令不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20432222/

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