HandlerInterceptor.afterCompletion threw exception
时间: 2024-01-05 22:53:20 浏览: 235
HandlerInterceptor.afterCompletion抛出异常是指在处理请求后,执行HandlerInterceptor的afterCompletion方法时发生了异常。
在HandlerExecutionChain接口中定义了一个方法getHandler(HttpServletRequest request),该方法返回一个HandlerExecutionChain对象,该对象包含了用于处理请求的处理器(handler)。
HandlerInterceptor接口定义了三个方法,其中afterCompletion方法用于在处理请求完成后执行一些清理工作,例如释放资源等。
当afterCompletion方法抛出异常时,通常是因为在清理工作过程中发生了异常,例如无法创建会话(session)或响应已经提交等。这个异常类型是IllegalStateException。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [springboot报错分析汇总(不定期更新)](https://blog.csdn.net/thankna/article/details/106544431)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [SpringMVC拦截器HandlerInterceptor原理及使用](https://blog.csdn.net/cristianoxm/article/details/123215237)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文