簡體   English   中英

如何在 JoinFaces/Spring Boot 中設置 Undertow 屬性?

[英]How can I set Undertow properties in JoinFaces/Spring Boot?

到目前為止,我們使用 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)運行我們的應用程序,但到目前為止都沒有奏效。

這甚至可以在屬性文件中完成還是我們需要一個程序化的解決方案?

看這里: 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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM