2
私は私のサーブレットはServletExceptionがServletExceptionをスローした場合、ログに何かを書き込む方法はありますか?
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException{
try {
} catch (ServletException e) {
log.warn("error");
throw new SerletException(e);
}
はそれが再帰ウィルスローした場合、ログにエントリを作成したいですか?例外を処理するのは正しい方法ですか?
答えていただきありがとうございます。私はフィルターで行います) – Ifozest
どうぞよろしくお願いいたします。 – BalusC