grails 通过applicationContext获取bean

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

class ShopService{

def grailsApplication

def test(){
   grailsApplication.mainContext.getBean('myService')
}

}