[英]Grails unit-test url-mapping for '/$controller'
如何在測試'/ $ controller'的grails中進行單元測試url映射?
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
謝謝
Grails已為此內置了功能(如果您使用的是grails 2.x)。 http://grails.org/doc/latest/guide/testing.html#unitTestingURLMappings
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.