![](/img/trans.png)
[英]StringIndexOutOfBoundsException on get function in GORM
當我嘗試使用GORM中的get函數檢索域類對象時,出現StringIndexOutOfBoundsException。 域類 MYSQL數據庫表 ID | int(10)無符號 個人資料| bigint(20)未簽名的用戶名| varchar(40) TYPE ...
[英]StringIndexOutOfBoundsException on get function in GORM
當我嘗試使用GORM中的get函數檢索域類對象時,出現StringIndexOutOfBoundsException。 域類 MYSQL數據庫表 ID | int(10)無符號 個人資料| bigint(20)未簽名的用戶名| varchar(40) TYPE ...
[英]how to mock util classes in grails service unit testing
我想模擬utilFunc方法,我該怎么做? grails版本:3.0.10 ...
[英]how to test grails 3 controller with services that have another services inject into them?
在控制器的單元測試用例中,我只能注入在相應控制器中使用的服務。但是,如果說控制器中的一個服務注入了另一個服務,則我的測試用例會失敗,即無法在空對象上調用服務方法。 在這種情況下,我無法在null對象上調用“ anotherServiceMethod” 。 有什么方法可以測試這種類型的控 ...
[英]Grails 3.0.x Interceptor matchAll().excludes for multiple controllers
在Grails 3.0.11攔截器文檔之后,我編寫了我自己的攔截器,如下所示: 當我從日志控制台測試http:// localhost:8080 / p2m / index時 ,我看到P2mController.index()在未經過檢查的情況下執行。 但是,當我測試http:// ...
[英]Grails 3 in Tomcat 6
我正在嘗試在Tomcat 6容器上部署我的grails應用程序版本3,當tomcat嘗試部署應用程序時,我遇到以下錯誤: Jan 05, 2016 5:24:44 PM org.apache.catalina.loader.WebappClassLoader validateJa ...
[英]Variables available in grails templates
我正在嘗試編輯grails腳手架模板以在create.gsp和edit.gsp中創建單個字段 如果我在create.gsp中添加以下內容 我unable to resolve class grails.core.GrailsDomainClass為此,我無法使用Groovy列出的任 ...
[英]Spring Cloud Angel.SR4 And Grails 3.0.9 Don't Work
也許您可以幫助我解決這個問題: 我正在創建一個Grails項目版本3.0.10,並希望該項目作為Eureka Client運行。 我正在使用Spring Boot 1.3.1.RELEASE,並且正在嘗試使用Spring Cloud Angel.SR4版本。 我有一個運行良好的Ja ...
[英]Grails 3.0.10 redirect not use context path, but using directory name
我正在將應用程序從grails 2.5.2轉換為3.0.10。 我在很多控制器和其他地方 我已經在application.groovy中設置了上下文路徑: 調用重定向后,重定向將通過/ myapp / my / url的/ my-app-dir / my / url安裝程序進行 ...
[英]IllegalArgumentException when mocking a grails service that extends a generic base class
單元測試: 服務: 通用基類: 堆棧跟蹤: ...
[英]How do I detect a Composite Primary Key in Grails 3.0?
我目前正在將Grails 2.4項目遷移到Grails 3.0.10或3.1.0.M3。 在Grails 2.4中,以下方法是一種變通方法,它使我能夠檢測域類是否具有復合主鍵: 我找不到在公共API中檢測到此問題的方法。 盡管GrailsDomainClass仍存在於實現源代 ...
[英]Grails Interceptor model is null in unit test
我有一個攔截器,可以在模型對象上設置屬性。 在單元測試中,模型為空。 攔截器 規格 堆棧跟蹤 ...
[英]How to change Grails 3 SDK path in IntelliJ project once created?
我想將我的項目從Grails從3.0.9更改為3.0.10因為后者包含Promise API。 如何在IntelliJ中做到這一點? ...