【发布时间】:2015-05-22 03:12:31
【问题描述】:
我有一个 Grails 服务,
父类:
class BarService{
def fetchData(params) {
return fooData.toString()
}
}
儿童班:
class FooService extends BarService{
def fetchData(params) {
def fooData = super.fetchData(params) //this will call the BarService method
return fooData
}
}
这是正确的常规方式吗?因为对我来说这看起来像 Java
谢谢
【问题讨论】: