Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Web プロジェクトでは、ユーザーは PDF ファイルをダウンロードする必要があります。Spring ResponseEntity を使用して PDF ファイルを返しています。現在、ファイルが見つからない場合は、
new ResponseEntity<byte[]>(HttpStatus.NOT_FOUND);
しかし、フロントエンドでは、ユーザーはあまりフレンドリーではない空白のページを取得します。では、これを処理するより良い方法は何でしょうか?
前もって感謝します。