如果您是用IDEA 的 maven 写的

slf4j的导入包 更改 为下列代码

         <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.8.0-beta2</version>
</dependency> <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.8.0-beta2</version>
<scope>test</scope>
</dependency>

原因如下:

如果图片未加载成功,请看官方回答

No SLF4J providers were found.
This warning, i.e. not an error, message is reported when no SLF4J providers could be found on the class path. Placing one (and only one) of slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem. Note that these providers must target slf4j-api 1.8 or later. In the absence of a provider, SLF4J will default to a no-operation (NOP) logger provider. Please note that slf4j-api version 1.8.x and later use the ServiceLoader mechanism. Earlier versions relied on the static binder mechanism which is no longer honored by slf4j-api. Please read the FAQ entry What has changed in SLF4J version 1.8.0? for further important details. If you are responsible for packaging an application and do not care about logging, then placing slf4j-nop.jar on the class path of your application will get rid of this warning message. Note that embedded components such as libraries or frameworks should not declare a dependency on any SLF4J providers but only depend on slf4j-api. When a library declares a compile-time dependency on a SLF4J provider, it imposes that provider on the end-user, thus negating SLF4J's purpose.

最新文章

  1. Android之下拉刷新的ListView
  2. TSQL语句练习题
  3. Core functionality.md
  4. 关于浏览器兼容问题及hack写法
  5. BZOJ2610 : [Poi2003]Monkeys
  6. C++引用(References)
  7. linux 命令行更新sdk
  8. UVa10651(记忆化搜索)
  9. Android4: Write Storage权限问题
  10. db link 连接不上
  11. gitflow 在windows下的安装方法
  12. java IoC
  13. javaweb项目中发布webservices服务
  14. swoft 源码解读【转】
  15. Python Redis 的安装
  16. Winform数据库连接app.config文件配置
  17. elasticsearch-5.2.1在windows下的安装方法
  18. 一个简易的allocator
  19. REST接口调用经验
  20. 扩充巴科斯范式(ABNF)

热门文章

  1. Hive —— 安装部署
  2. Kafka 学习之路(三)—— Kafka生产者详解
  3. spring cloud 系列第1篇 —— eureka 服务的注册与发现 (F版本)
  4. 每天学点node系列-stream
  5. Skyline WEB端开发1——入门
  6. 100天搞定机器学习|Day11 实现KNN
  7. MacBook强制清除gardle缓存
  8. 【Aizu - 0118】Property Distribution
  9. Maxon Cinema 4D Studio R20.026 中文破解版下载
  10. C# Linq 常用查询操作符