首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在JoinFaces/Spring Boot中设置Undertow属性?

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

Stack Overflow用户
提问于 2019-01-16 19:14:47
回答 1查看 1.6K关注 0票数 2

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

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

这可以在属性文件中完成吗?或者我们需要一个编程解决方案吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-02-26 21:01:51

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

我只看到Undertow的这些属性。

代码语言:javascript
复制
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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54215849

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档