Why use @Singleton over Scala's object in Play Framework?
问题 I have been using Play! Framework for Scala for nearly a year now. I am currently using version 2.5.x. I am aware of the evolution of controllers in Play and how developers have been forced away from static object routes. I am also aware of the Guice usage in play. If you download activator and run: activator new my-test-app play-scala Activator will produce a template project for you. My question is specifically around this file of that template. my-test-app/app/services/Counter.scala