springBoot项目部署在linux的Tomcat时,启动Tomcat报错
报错信息:
严重: Unable to process Jar entry [module-info.class]
from Jar [jar:file:xxxxxT/WEB-INF/lib/log4j-api-2.10.0.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
原因是springboot内置的tomcat版本与tomcat的版本不一致
查询springboot内置tomcat版本:https://blog.youkuaiyun.com/jiangyu1013/article/details/80757228