Как установить свойства Undertow в JoinFaces/Spring Boot?

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

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

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


person Primi    schedule 16.01.2019    source источник
comment
Я отправил запрос в Spring Boot, чтобы добавить свойства Undertow: github.com/spring -проекты/весенняя загрузка/проблемы/16077   -  person Melloware    schedule 03.03.2019


Ответы (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

person Melloware    schedule 26.02.2019