Spring Boot-03-异常汇总
2017年12月19日小于 1 分钟
NoClassDefFoundError
现象
SpringBoot在运行的时候会出现NoClassDefFoundError: org/apache/juli/logging/LogFactory的错误,
具体错误内容如下:
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
原因
这是因为没有juli.jar导致的
解决方式
加入对应 jar 即可
org.apache.tomcat.embed
tomcat-embed-logging-juli
7.0.27
参考资料
贡献者
binbin.hou