TomcatServletWebServerFactory重复注册问题处理

This commit is contained in:
zhangdaiscott
2021-01-25 11:43:50 +08:00
parent 9c77cd8b78
commit 8e0c44335e
3 changed files with 33 additions and 32 deletions

View File

@ -45,17 +45,4 @@ public class JeecgSystemCloudApplication extends SpringBootServletInitializer {
"----------------------------------------------------------");
}
/**
* tomcat-embed-jasper引用后提示jar找不到的问题
*/
@Bean
public TomcatServletWebServerFactory tomcatFactory() {
return new TomcatServletWebServerFactory() {
@Override
protected void postProcessContext(Context context) {
((StandardJarScanner) context.getJarScanner()).setScanManifest(false);
}
};
}
}