2013-04-16 7 views

答えて

19

は、私はこれを使用します。ctxは春ApplicationContextある

ctx.beanDefinitionNames.sort().each { println it } 

。あなたはコントローラ/サービス/ etcでそれを得ることができます。

def grailsApplication 
... 
def ctx = grailsApplication.mainContext 

は、Bean名のすべてを考えると、あなたは

def bean = ctx.getBean(name) 
で個々のものを検査することができます
関連する問題