我使用scala 2.5,在尝试将一个对象注入到我的控制器中时出现了以下错误。我使用的默认注入框架与play,即Guice。ProvisionException: Unable to provision, see the following errors:
1) No implementation for services.MyServicewhile locating play.api.routing.Router for parameter 0 at play</e
play-framework为管理应用程序中的依赖关系提供了I am usingPlay-Framework2.4、, Spring-Data-MongoDb和Google Guice Dependency但是,当我将Spring-Data与Play和Dependency Injection结合使用时,Play和Dependency Injection的内部实现并没有映射到Spring-Data存储库。在上面的情况下,下面的异常由运行框架抛出:
ProvisionException: U
从Play 2.7.x我无法获得play.api.Application,我已经尝试了多种方法,例如,从自定义模块(插件),甚至从我的ApplicationController。我总是得到下面的循环依赖错误: ProvisionException: Unable to provision, see the following errors:
w
我正在尝试使用DI在我的应用程序中注入一个webservice客户端。当我在注入的对象中引用当前应用程序时,我得到了运行时异常。下面是我的代码框架。**import play.api.Play.Current** class MicorServiceClient@Inject()(ws: WSclient) {@709lj5bmd: Unexpected exception
at play.core.server.DevSe