Play 2.3中的高级HTTP服务器配置 [英] Advanced HTTP server configurations in Play 2.3

本文介绍了Play 2.3中的高级HTTP服务器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Play 2.3开发应用程序.

I am using Play 2.3 to develop an application.

我需要将http.netty.log.wire设置为true,默认情况下为false(如Play文档中所指定).

I need to set http.netty.log.wire to true which is by default false as specified in Play documents.

在下面的链接(最后一部分)中,该选项可用,但它还指定我们不能使用application.conf"来指定此选项.

In the below link (last section) it says this option is available but it also specifies "we cannot use application.conf" to specify this.

https://www.playframework.com/documentation/2.3.x/ProductionConfiguration

如果我们无法在应用程序配置文件中指定此名称,我们该如何指定它?

If we cannot specify this in application conf, how can we specify this?

谢谢

推荐答案

您将需要在命令行中传递这些选项:

You will need to pass those options in the command line:

/path/to/your/app/bin/yourapp -Dhttp.netty.log.wire=true

这篇关于Play 2.3中的高级HTTP服务器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆