![](/img/trans.png)
[英]Can we use multiple yaml files in a single spring boot application?
[英]Spring Boot : Can we use reactive Webfilter in existing spring mvc application?
我正在嘗試將 spring 反應式 Webflux webfilter 合並到現有的 spring boot web 應用程序中,並得到以下錯誤。
應用程序無法啟動
描述:
無法注冊在類路徑資源 [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class] 中定義的 bean 'conversionServicePostProcessor'。 具有該名稱的 bean 已經在類路徑資源 [org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.class] 中定義並且覆蓋被禁用。
問題:我們可以在現有的 spring mvc 應用程序中使用反應式 Webfilter 嗎?
提前致謝。
不,您不能直接使用反應式過濾器; MVC 堆棧使用 Servlet API,它有自己的(阻塞)過濾機制。 您或許能夠將業務邏輯提取到一個公共類中,並從反應式和阻塞式實現中引用它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.