How to set a custom ErrorReportValve in Tomcat?

可紊 提交于 2021-02-10 18:20:47

问题


I want to set a custom ErrorReportValve. How do I do that?


回答1:


To set a custom ErrorReportValve:

  1. Create a JAR with your custom valve
  2. Put it into $CATALINA_BASE/lib
  3. Add the errorReportValveClass to your Host element
  4. Restart your Tomcat


来源:https://stackoverflow.com/questions/12287719/how-to-set-a-custom-errorreportvalve-in-tomcat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!