grails-2.5

    1热度

    1回答

    我们最近从Grails 2.4.4升级到2.5.1,并且升级到了JDK 8.从那之后,下面的测试案例一直失败。 在我们的服务类中,我们定义了一个私有方法来调用外部服务。 def retrieveResults() { def results = callSoapService('serviceName') } private def callSoapService(def ser

    0热度

    1回答

    我想调用索引操作,并不断调用计数操作,我不知道为什么。这是urlmapping group "/api/product",{ "?"(controller: 'product', action: 'save', method: 'POST') "?"(controller: 'product', action: 'index', method: 'GET') "/$i

    1热度

    1回答

    有一种方法可以临时禁用特定域类的beforeInsert事件吗?我需要执行以下步骤: 禁用beforeInsert的执行; 在对象中执行一种saveAs例程; 重新启用beforeInsert的执行。 saveAs例程在特定对象中执行深克隆并使用相同数据创建新对象。看到这个答案,了解克隆:How can I duplicate a domain object in Grails? 原因禁用befo

    2热度

    1回答

    如果我使用的是sass或更少的导入,我无法获得sass资产管道或较少资产管道插件的工作。 如果我只有一个sass或更少的文件,圣杯战争正常工作。 但是在我的场景中,file1.scss导入了file2.scss,最后我只想结束从两者创建的file1.css。这要根据本 https://grails.org/plugin/sass-asset-pipeline 是可能的,但我得到这个输出 | Min

    0热度

    1回答

    我的项目基于Grails 2.2.2。现在我需要升级到Grails 2.5.4以升级Groovy版本2.4.4 因此,我下载了Grails 2.5.4并在类路径中设置了环境变量和bin文件夹中的Grails Home。 从命令行,我可以看到Grails -version是Grails的2.5.4 接下来,我创建Grails的创造,应用的HelloWorld。它已成功创建。 cd进入hellowor

    0热度

    1回答

    我的项目包含几个包含单元测试的私有插件(模块)。我试图在主目录和插件中使用grails test-app运行测试,但该脚本仅在主项目中找到测试。插件具有跨依赖性。我应该使用哪个命令/脚本来执行主项目和专用插件(模块)中的所有测试? Grails的2.5 的IntelliJ IDEA 14.1.5

    1热度

    1回答

    我有在2.5.1版本中开发的Grails Web项目。它在Tomcat 7.0.63中工作正常。当我的Tomcat 8.0.33中部署相同的运行WAR文件,它提供了Ehcache错误: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework

    0热度

    1回答

    让taglib使用外部js库来显示用户通知。 由于在很多视图中调用这个taglib,我想知道如何直接从标签中获取库js模块,而不需要从每个gsp视图执行。 目前,我在GSP文件中使用此代码: <g:require modules="pnotify"/> 及以下的taglib源代码: class MyTagLib { static namespace = "my" def

    2热度

    1回答

    我从2.4.5将grails版本升级到2.5.0。而运行我的项目是已发生的问题 - Error initializing the application: Error creating bean with name 'com.athena.mis.application.model.ListSupplierActionServiceModelValidator': Injection of aut

    1热度

    1回答

    我正在用Grails 2.5.1测试quartz插件。下面是工作代码: class TestingJob { static triggers = { simple name: 'mySimpleTrigger', startDelay: 60000, repeatInterval: 1000l, repeatCount: 10 } def execute