tomcat启动springboot application提示“LoggerFactory is not a Logback LoggerContext but Logback is on the classpath”
今天在用sprintboot可视化时,刚一启动就报错了。典型的关于日志的jar包冲突问题,log4j和logback排除掉一个即可。参考如下链接,已经很详细了,亲测可行。
https://blog.hissummer.com/2018/08/tomcat%E5%90%AF%E5%8A%A8springboot-application%E6%8F%90%E7%A4%BAloggerfactory-is-not-a-logback-loggercontext-but-logback-is-on-the-classpath/