Spring Boot启动出现Failed to load class "org.slf4j.impl.StaticLoggerBinder"的问题
2018-01-03 15:57
501 查看
今天搭建springboot的环境,在pom文件引入依赖
搭建完毕之后出现如下结果:
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
查看http://www.slf4j.org/codes.html#StaticLoggerBinde
解决方法应该就是引入slf4j-nop.jar就好了:
在pom.xml引入:
运行后发现没有提示Failed to load class “org.slf4j.impl.StaticLoggerBinder”
还有一种方法(不推荐)就是换成旧版本的springboot
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.2.RELEASE</version> </parent>
搭建完毕之后出现如下结果:
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
查看http://www.slf4j.org/codes.html#StaticLoggerBinde
解决方法应该就是引入slf4j-nop.jar就好了:
在pom.xml引入:
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>1.7.24</version> </dependency>
运行后发现没有提示Failed to load class “org.slf4j.impl.StaticLoggerBinder”
还有一种方法(不推荐)就是换成旧版本的springboot
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.3.RELEASE</version> </parent>
相关文章推荐
- Java问题解决:springboot启动出现-Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- SpringBoot使用多实例QUARTZ出现重复执行问题
- 关于springboot正常启动,路由却无法正常访问的问题
- 关于SpringBoot启动类报错的问题解决
- spring boot成功启动后访问报错404的问题
- 通过实例及源码分析关于SpringBoot启动类启动时自动配置问题
- 使用spring boot连接数据库出现no profiles are currently active的问题
- 关于springboot启动的问题.
- springboot使用websocket时,打成war包,发布到服务器,项目启动报错问题
- Spring学习中出现的问题(一)——配置启动篇(服务器为Tomcat)
- 解决spring-boot启动中碰到的问题:Cannot determine embedded database driver class for database type NONE
- [问题记录] spring-boot 打印启动时间
- 解决spring-boot启动中碰到的问题:Cannot determine embedded database driver class for database type NONE(转)
- Springboot 启动问题
- 关于IDEA工具在springboot整合mybatis中出现的Invalid bound statement (not found)问题
- spring boot成功启动后访问报错404的问题
- Angular2 和springboot 整合后 url 解析出现的问题解决方案
- 关于IDEA启动Spring Boot项目出现Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext at j
- Spring boot中出现JDK dynamic proxy使用@Resource注入实例出现问题
- Springboot 启动问题