Last active
January 19, 2018 09:54
-
-
Save panchenko/abba7063ff62946facc83a09748c277b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public static TomcatEmbeddedServletContainerFactory tomcatEmbeddedServletContainerFactory() { | |
return new TomcatEmbeddedServletContainerFactory() { | |
@Override | |
protected TomcatEmbeddedServletContainer getTomcatEmbeddedServletContainer(Tomcat tomcat) { | |
final ErrorReportValve errorReportValve = new ErrorReportValve(); | |
errorReportValve.setShowServerInfo(false); | |
errorReportValve.setShowReport(false); | |
tomcat.getHost().getPipeline().addValve(errorReportValve); | |
return super.getTomcatEmbeddedServletContainer(tomcat); | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment