0
我試圖創建一個Zipkin 1.31.1服務器使用Spring Boot 1.3.5.RELEASE構建一個胖的可執行JAR與Tomcat 8.0.33嵌入在它。這是通過以下錯誤消息失敗:解決方法LogbackValve缺乏異步支持
java.lang.IllegalArgumentException: Async support must be enabled on a servlet and for all filters involved in async request processing. This is done in Java code using the Servlet API or by adding "<async-supported>true</async-supported>" to servlet and filter declarations in web.xml. Also you must use a Servlet 3.0+ container
因爲即使與建議的修復中Spring Boot Enable Async Supported Like in web.xml說明。
在調試器設置斷點之後,我發現的問題是與在
How to Make LogbackValve async Supported
描述其中未回答最終不得不創建以下改進請求:
ch.qos.logback.access.tomcat.LogbackValve is not async-supported
有沒有人有任何建議我可以解決這個問題?我需要幫助,或者:
- 在管道與支持異步行爲的包裝更換LogBackValve
OR
- 禁用LogbackValve和/或從管道中取出,生活沒有它好處
任何幫助,你可以提供將不勝感激。謝謝!