Przeglądaj źródła

Play 2 (Java): Disable (unused) Http context ThreadLocal (#4429)

Matthias Kurz 6 lat temu
rodzic
commit
c216d76ef2

+ 4 - 0
frameworks/Java/play2-java/play2-java-ebean-hikaricp/conf/application.conf

@@ -13,6 +13,10 @@ play.i18n.langs = [ "en" ]
 # Disable default filters
 play.filters.enabled = [ ]
 
+# Disable thread local, it's not used by this application
+# ~~~~~
+play.allowHttpContext = false
+
 play.modules {
   enabled += "startup.StartupModule"
 }

+ 4 - 0
frameworks/Java/play2-java/play2-java-jooq-hikaricp/conf/application.conf

@@ -13,6 +13,10 @@ play.i18n.langs = [ "en" ]
 # Disable default filters
 play.filters.enabled = [ ]
 
+# Disable thread local, it's not used by this application
+# ~~~~~
+play.allowHttpContext = false
+
 play.modules {
   enabled += "startup.StartupModule"
 }

+ 4 - 0
frameworks/Java/play2-java/play2-java-jpa-hikaricp/conf/application.conf

@@ -13,6 +13,10 @@ play.i18n.langs = [ "en" ]
 # Disable default filters
 play.filters.enabled = [ ]
 
+# Disable thread local, it's not used by this application
+# ~~~~~
+play.allowHttpContext = false
+
 play.modules {
   enabled += "startup.StartupModule"
 }

+ 4 - 0
frameworks/Java/play2-java/play2-java/conf/application.conf

@@ -13,6 +13,10 @@ play.i18n.langs = [ "en" ]
 # Disable default filters
 play.filters.enabled = [ ]
 
+# Disable thread local, it's not used by this application
+# ~~~~~
+play.allowHttpContext = false
+
 play.modules {
   enabled += "startup.StartupModule"
 }