How to set a custom ErrorReportValve in Tomcat?
问题 I want to set a custom ErrorReportValve . How do I do that? 回答1: To set a custom ErrorReportValve : Create a JAR with your custom valve Put it into $CATALINA_BASE/lib Add the errorReportValveClass to your Host element Restart your Tomcat 来源: https://stackoverflow.com/questions/12287719/how-to-set-a-custom-errorreportvalve-in-tomcat