【发布时间】:2013-08-23 13:52:20
【问题描述】:
这个线程描述了如何在视图中调用服务:How do I get an instance of a Grails service programmatically?
这描述了如何在 Servlet 中调用它:How do I get an instance of a Grails service programmatically?
这个说如何在 Controller 中调用它:How to dynamically select a service in Grails
我需要在集成测试中处理我的服务。这可能吗?
【问题讨论】:
-
你不能把
def myService放在测试中,grails 应该把它注入 AFAIK
标签: grails