【问题标题】:grails- 2.3.4 generate-all command is not workinggrails-2.3.4 generate-all 命令不起作用
【发布时间】:2013-12-06 19:40:56
【问题描述】:

我是 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 版本中修复。但我仍然面临这个问题。

【问题讨论】:

    标签: spring hibernate grails


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-23
      • 2016-04-07
      • 1970-01-01
      • 2015-03-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多