【问题标题】:How can I set Undertow properties in JoinFaces/Spring Boot?如何在 JoinFaces/Spring Boot 中设置 Undertow 属性?
【发布时间】:2019-01-16 11:14:47
【问题描述】:

到目前为止,我们使用 Wildfly 12 并增加了 Standalone.xml 配置文件中 undertow 模块 (server->http-listener) 内的 http max-parameters 值。

现在我们使用 JoinFaces 切换到 Spring 生态系统,但不知道如何正确配置 Undertow。根据 JoinFaces wiki,应该在 application.properties 文件中使用 jsf.undertow 命名空间。所以我们运行我们的应用程序尝试了几种解决方案(如 jsf.undertow.http.max-parameters=5000),但到目前为止都没有奏效。

这甚至可以在属性文件中完成,还是我们需要编程解决方案?

【问题讨论】:

标签: spring-boot undertow joinfaces


【解决方案1】:

看这里:https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html

我只看到这些属性可用于 Undertow。

server.undertow.accesslog.dir= # Undertow access log directory.
server.undertow.accesslog.enabled=false # Whether to enable the access log.
server.undertow.accesslog.pattern=common # Format pattern for access logs.
server.undertow.accesslog.prefix=access_log. # Log file name prefix.
server.undertow.accesslog.rotate=true # Whether to enable access log rotation.
server.undertow.accesslog.suffix=log # Log file name suffix.
server.undertow.buffer-size= # Size of each buffer.
server.undertow.direct-buffers= # Whether to allocate buffers outside the Java heap. The default is derived from the maximum amount of memory that is available to the JVM.
server.undertow.eager-filter-init=true # Whether servlet filters should be initialized on startup.
server.undertow.io-threads= # Number of I/O threads to create for the worker. The default is derived from the number of available processors.
server.undertow.max-http-post-size=-1B # Maximum size of the HTTP post content. When the value is -1, the default, the size is unlimited.
server.undertow.worker-threads= # Number of worker threads. The default is 8 times the number of I/O threads.

所以看起来您必须请求有关 Spring Boot Undertow 问题的问题才能让他们添加它!

在这里申请:https://github.com/spring-projects/spring-boot/issues

【讨论】:

    猜你喜欢
    • 2018-05-04
    • 2019-08-26
    • 2018-08-26
    • 2020-08-21
    • 2019-01-03
    • 2019-03-04
    • 2020-12-24
    • 2017-01-08
    • 1970-01-01
    相关资源
    最近更新 更多