Как настроить свойства Undertow в JoinFaces / Spring Boot? - PullRequest
0 голосов
/ 16 января 2019

До сих пор мы использовали Wildfly 12 и увеличивали значение http max-parameters внутри модуля undertow (server-> http-listener) в файле конфигурации standalone.xml.

Теперь мы перешли на экосистему Spring с использованием JoinFaces и не знаем, как правильно настроить Undertow. Согласно вики JoinFaces, пространство имен jsf.undertow должно использоваться внутри файла application.properties. Поэтому мы запустили наше приложение, пробуя несколько решений (например, jsf.undertow.http.max-parameters = 5000), но пока ни одно из них не сработало.

Можно ли это сделать даже в файле свойств или нам нужно программное решение?

1 Ответ

0 голосов
/ 26 февраля 2019

Глядя здесь: 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

...