Playframework & Guice without routing
问题 I would like to know if it's possible to inject dependencies using Guice without having to pass by the routing. If it is how can I call my class Test @Inject()... within my application ? 回答1: I think there are two ways to use Guice in Play framework: 1) Directly instantiate an object based on the binding: Add Guice to your Build.scala app dependencies val appDependencies = Seq( "com.google.inject" % "guice" % "3.0" ) Create a Global class, which extends GlobalSettings, and bind interface to