我很难访问 doWithDynamicMethod 中的特定服务。
def doWithDynamicMethods = { ctx ->
def nodeDriverProxy = application.getServiceClass('NodeDriverProxyService')
application.domainClasses.each{ cClass ->
delegate.log.warn('cClass: ' + cClass.toString())
cClass.metaClass.cacheInstance = { domainIns->
delegate.log.warn "domain is being cached id: ? with version ?"
nodeDriverProxy.registerUpdate(domainIns.id, domainIns.version)
}
变量 nodeDriveProxy 为空或访问“application.serviceClasses”时出现异常我做错了什么?谢谢你