报错信息:
严重: 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
以及
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'defaultValidator' defined in class path resource
[org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]:
Bean instantiation via factory method failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]:
Factory method 'defaultValidator' threw exception;
nested exception is java.lang.NoClassDefFoundError: javax/el/ELManager
本人使用的是:
springboot版本:2.0.3
Tomcat版本:7.0.65
经排查,是因为Tomcat版本原因,把Tomcat版本换成8.0.23之后可以正常启动。