362 CHAPTER 8: Play with Java and Scala
Now type run. This will start the server that will run your application.
$ run
The output on the console is shown here:
[helloworld] $ run
[info] Updating {file:/E:/ModernJava/play2-workspace/helloworld/}helloworld...
[info] Resolving org.scala-lang#scala-library;2.10.2 ...
[info] Resolving com.typesafe.play#play-java-jdbc_2.10;2.2.0 ...
[info] Resolving com.typesafe.play#play-jdbc_2.10;2.2.0 ...
[info] Resolving com.typesafe.play#play_2.10;2.2.0 ...
...............................................
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
--- (Running the application from SBT, auto-reloading is enabled) ---
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Ctrl+D to stop and go back to the console...)
As you can see, the console says that it has started the application, and an HTTP server is listening
for HTTP requests on the port 9000. You can now send a request to this server by going to the
URL http://localhost:9000/. Upon requesting the server, a welcome screen is displayed, as
illustrated in Figure 8-9.
Figure 8-9. Default welcome page of the Play 2 framework