在座标上出现了奇怪的问题:
class FooController {
def barService
def update = {
log.debug("I m getting executed")
barService.doFoo()
render "Done"
}
}
我现在在浏览器(我的案件是Firefox)上输入<条码>http://my.domain.tld/fancyapp/foo/update时,该代码在<条码>上执行三次。
EDIT1: 驳船服务.doFoo() 包含大量计算,因此需要很长时间才能完成。
<>EDIT2:@hvgotcodes: no, sorry, no accreditationation and my UrlMappings. gro:
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/"(view:"/index")
"500"(view: /error )
}
}
@Jarred: 页: 1
无