Play 2.7 migration - set play.allowGlobalApplication = true

I try a migration form 2.5 to 2.7 version of play scala.

When i run my server, and ping / path (do same things with other path) i have this error message :

play.api.UnexpectedException: Unexpected exception[RuntimeException:
The global application reference is disabled. Play’s global state is deprecated and will
be removed in a future release. You should use dependency injection instead. To enable
the global application anyway, set play.allowGlobalApplication = true

When i effectively set play.allowGlobalApplication = true in my application.conf file, that change nothing.

Someone can help me ?

In advance thx.

1 Like