I\'m getting some warnings in log, like this:
java.io.FileNotFoundException: C:\\Users\\user\\.m2\\repository\\com\\lowagie\\itext\\2.0.8\\bcmail-jdk14-138.jar (
Just trying to improve Oleg's excellent answer about Spring Boot 1.x..
Here's the corresponding code for Spring Boot 2.0 (Tomcat 8.5):
@Bean
public TomcatServletWebServerFactory tomcatFactory() {
return new TomcatServletWebServerFactory() {
@Override
protected void postProcessContext(Context context) {
((StandardJarScanner) context.getJarScanner()).setScanManifest(false);
}
};
}
Just add that to your application's configuration.