February 2018
Intermediate to advanced
552 pages
13h 46m
English
In the previous example, we have developed our first Play Framework HelloWorld Web Application.
For a clear separation between the Play Web Application with DI and without DI, I'll create a new project with the same content without changing the previous project:
Project Name: play-scala-helloworld-di-app
HelloWorldDIController.scala:
package controllers import javax.inject._ import play.api.mvc._ @Singleton class HelloWorldDIController @Inject() extends Controller { def helloWorld = Action { Ok(views.html.helloWorld("Hello ...