Web Frameworks: How is Play different from Spring MVC? [closed]

I find the “pure Java” claim on either side very funny. Of course, it’s unrealistic for a project to use absolutely nothing but java. Still, a “pure Java” label should have some standards, I don’t think either framework qualifies. Play actually modifies the semantics of Java language. That is all right as long as it’s … Read more

-Ywarn-unused-import triggering on play routes file

I’ve come up with a working solution for Scala 2.13.7 (no need for any plugin) for Play 2.8.11. Take a look on those examples and adjust to your needs: scalacOptions ++= Seq( “-Wconf:cat=unused-imports&site=.*views.html.*:s”, // Silence import warnings in Play html files “-Wconf:cat=unused-imports&site=<empty>:s”, // Silence import warnings on Play `routes` files “-Wconf:cat=unused-imports&site=router:s”, // Silence import warnings … Read more

What are the major differences between Play Framework 1.0 and 2.0?

Here’s my list, of course, with some duplications breaks backward compatibility (it’s a rewrite from scratch) core programmed in scala vs java (got to learn scala to collaborate) scala for templates (but work is being done on groovy templates as a module, to ease migration), so you have to specify the type of each parameter … Read more

How is Akka used in Play?

In Play 2.0, Play delegated all requests to go through an actor. It heavily depended on Akka’s future API and other parts. In Play 2.1, with the move of Akka’s future API into Scala 2.10, Play started depending less directly on Akka. It gets all it’s execution contexts from Akka, and provides integration with Akka, … Read more

Play framework hangs on startup at: “Loading project definition from”

I just experienced this myself with Play 2 and it turns out it wasn’t truly hanging, it was just pulling a maven and downloading the Internet. To verify this is the same behavior you were experiencing edit project/plugins.sbt and replace: logLevel := Level.Warn with logLevel := Level.Debug (Though I am building on OSX I imagine … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)