since you probably don't want a dependency to Catalina, you can ignore the Exception like this (I'm assuming the ClientAbortException is the cause):String simpleName = e.getCause().getClass().getSimpleName();if (simpleName.equals("ClientAbortException")) { // ignore} else { // do whatever you do} 这篇关于如何捕获和忽略 org.apache.catalina.connector.ClientAbortException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-13 04:01