I have a domain class called Test. I want to call a method from its service TestService in the domain class. What is the right way to call in grails 2.2?
Thank you.
add:
def testService
to the top of your domain class, and call:
testService.method()
Where you want to call it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.