問題タブ [spring-mono]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - How to solve the, calling for Mono then the result will be used to another Mono, which will then return Mono?
Hi I just started learning reactive programming
I have this piece of code here and my process here should be I will call tokenRepository to get the token and then, use the token.getAccessToken() to be used as a parameter on the cardRepository.findAllCards()
Would like to know if this is possible?
functional-programming - 春の Webflux モノ常に正常な応答で応答します
id パラメータを受け取り、delete product api を送信して削除するエンドポイントがあります。productService.delete も Mono を返します。問題は、productService.delete メソッドが mono エラーを返し、エンドポイントが常に http 200 で応答することです。この mono エラーに関するエラー ログを確認できますが、ハンドラー メソッドは http 200 を応答します。
APIで例外を処理するAbstractErrorWebExceptionHandlerがあります。しかし、Mono のため、エラー ハンドラはこの問題を処理できません。ダウンストリームで例外が発生した場合、Spring webflux はこのエラーを認識し、http 200 で応答しません。
ソースコードでは、指定された発行者が完了すると応答がコミットされると書かれています。しかし、 error complete はどうですか? Spring webflux はエラー信号かどうかをチェックしていないと思います。モノコンプリートかどうかを確認してください。
前もって感謝します。
java - Mono.then と Mono.flatMap/map の違い
webservice1 を呼び出し、最初の呼び出しが成功した場合は webservice2 を呼び出したいとします。
私は次のことを行うことができます(単なる指標の疑似コード):-
また
単一の要素に mono.just() を使用する場合、2 つの違いは何ですか?