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.
フィルターについての私の理解は、フィルターは前処理にのみ使用でき、タスクが完了すると、呼び出されたリソースに制御を与え、制御はフィルターに戻ります。では、後処理には使用できませんか? 私は正しいですよ?助けてください。
いいえ、あなたは正しくありません。通常、前処理と後処理が必要なフィルター メソッドは次のようになります。
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { preProcess(request, response); chain.doFilter(request, response); postProcess(request, response; }