太他娘的邪门了
解决方案:在springboot启动类加个bean
@Bean
public TomcatServletWebServerFactory tomcatFactory() {
return new TomcatServletWebServerFactory() {
@Override
protected void postProcessContext(Context context) {
((StandardJarScanner) context.getJarScanner()).setScanManifest(false);
}
};
}
原文:
https://zhuanlan.zhihu.com/p/62268760