如何在JoinFaces / Spring Boot中设置Undertow属性?

问题描述 投票:1回答:1

到目前为止,我们使用Wildfly 12并在standalone.xml配置文件中增加了底部模块(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个回答
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

© www.soinside.com 2019 - 2024. All rights reserved.