intellij idea用的是ideaIU-2017.1.4  。spring boot用的是2.10

出现错误

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/classic/Level
at org.springframework.boot.logging.logback.LogbackLoggingSystem.<clinit>(LogbackLoggingSystem.java:70)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.boot.logging.LoggingSystem.get(LoggingSystem.java:170)
at org.springframework.boot.logging.LoggingSystem.lambda$get$1(LoggingSystem.java:161)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet.lambda$entryConsumer$0(Collections.java:1575)
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
at java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntrySetSpliterator.tryAdvance(Collections.java:1594)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.springframework.boot.logging.LoggingSystem.get(LoggingSystem.java:161)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:216)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:196)

增加 log4j-core 后也不行 ,控制台就会出现

Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/classic/Level

错误。

后来我用  spring boot用的是1.56 就不会出现这个问题,正常运行

最后重新安装了ideaIU-2018.2.6 ,在用spring boot 2.10就没问题了

最新文章

  1. C语言中,while()语句中使用赋值语句
  2. 技术杂记-改造具有监控功能的数据库连接池阿里Druid,支持simple-jndi,kettle
  3. 取出session中的所有属性与值的方法
  4. 浏览器history对象
  5. Unity3D 搭建优雅的UI框架
  6. linux零基础入门总结
  7. UIKit框架之UIDynamicAnimator
  8. 《深入理解bootstrap》读书笔记:第一章 入门准备
  9. ogistic regression (逻辑回归) 概述
  10. Painter 12安装教程
  11. Asp.Net Web Api 与 Andriod 接口对接开发经验,给小伙伴分享一下!
  12. linux遇见的问题
  13. Java开发环境的基本设置
  14. iOS屏幕旋转 浅析
  15. Nagios工作原理
  16. 《 Oracle查询优化改写 技巧与案例 》电子工业出版社
  17. Spark记录-SparkSql官方文档中文翻译(部分转载)
  18. TOMCAT服务器配置域名
  19. Example of Formalising a Grammar for use with Lex &amp; Yacc
  20. POJ3414—Pots(bfs加回溯)

热门文章

  1. Python elasticsearch 使用心得
  2. python + pyqt 实现的你下载css背景图片的小工具(最终版)
  3. Windows 从头搭建c++ Eigen 库
  4. IDEA激活 重置试用30天
  5. xmind某一天突然打不开了
  6. 解决linux conda 命令行环境提示消失的方法
  7. vue2和vue3配置全局自定义参数及vue3动态绑定ref
  8. web基础(6): CSS综合实例-咖啡网页设计
  9. GIT笔记汇总
  10. vue3.0学习笔记