diff --git a/common/conf/reference.conf b/common/conf/reference.conf index 966f16b37..713c70eab 100644 --- a/common/conf/reference.conf +++ b/common/conf/reference.conf @@ -403,10 +403,7 @@ httpAuth.basic = { # ~~~~~ play = { - http = { - errorHandler = "com.commercetools.sunrise.play.http.SunriseDefaultHttpErrorHandler" - actionComposition.controllerAnnotationsFirst = true - } + http.errorHandler = "com.commercetools.sunrise.play.http.SunriseDefaultHttpErrorHandler" modules { enabled += "com.commercetools.sunrise.framework.injection.SunriseModule" diff --git a/conf/application.conf b/conf/application.conf index 857f09990..3c80547ab 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -345,6 +345,8 @@ play = { crypto.secret="changeme" crypto.secret=${?APPLICATION_SECRET} + http.actionComposition.controllerAnnotationsFirst = true + application.loader = "com.commercetools.sunrise.play.configuration.SunriseGuiceApplicationLoader" }