简体   繁体   English

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

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

Until now we used Wildfly 12 and increased the http max-parameters value inside the undertow module (server->http-listener) in the standalone.xml configuration file.到目前为止,我们使用 Wildfly 12 并增加了 standalone.xml 配置文件中 undertow 模块(server->http-listener)内的 http max-parameters 值。

Now we switched to the Spring ecosystem using JoinFaces and don't know how to configure Undertow properly.现在我们使用 JoinFaces 切换到 Spring 生态系统,并且不知道如何正确配置 Undertow。 According to the JoinFaces wiki the jsf.undertow namespace should be used inside the application.properties file.根据 JoinFaces wiki,应该在 application.properties 文件中使用 jsf.undertow 命名空间。 So we ran our app trying several solutions (like jsf.undertow.http.max-parameters=5000), but none worked so far.因此,我们尝试了多种解决方案(如 jsf.undertow.http.max-parameters=5000)运行我们的应用程序,但到目前为止都没有奏效。

Can this even be done in the property file or do we need a programmatic solution?这甚至可以在属性文件中完成还是我们需要一个程序化的解决方案?

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

I only see these properties available for Undertow.我只看到这些属性可用于 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.

So it looks like you will have to request an issue on the Spring Boot Undertow issues to have them add it!所以看起来你必须在 Spring Boot Undertow 问题上请求一个问题才能让他们添加它!

Request it here: https://github.com/spring-projects/spring-boot/issues在这里请求: https : //github.com/spring-projects/spring-boot/issues

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM