4 ms·
With Play 2.1 static controller methods are optional. If you prefix the controller reference in the routes file with @ then Play will instantiate the controller
by benmccann 14y ago
With Play 2.1 static controller methods are optional. If you prefix the controller reference in the routes file with @ then Play will instantiate the controller and call your instance method. It can instantiate it with Guice/Spring if you want as well.