SpringBoot
G_郭云飞
这个作者很懒,什么都没留下…
展开
-
测试Springboot时:org.springframework.beans.factory.UnsatisfiedDependencyException异常分析
造成这个问题的因素很多。 这次造成的问题如下: o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@71bbf57e] to prepare test instance [com原创 2020-12-11 18:46:11 · 1406 阅读 · 0 评论 -
idea springboot启动报SLF4J:Failed to load class “org.slf4j.impl.StaticLoggerBinder”
问题描述 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. . ____ _ __ _ _转载 2020-12-11 11:38:54 · 382 阅读 · 0 评论 -
解决Spring Boot Application in default package问题
问题描述: 创建SpringBoot主函数时,报Spring Boot Application in default package错误。 问题原因: 查看官方文档给出的解释 建议使用 @springbootApplication 注解失效的情况下,推荐使用@CompentScan 和@EnableAutoConfiguration进行代替; 解决方式: main 函数不能直接放在了java 目录之下,放在main函数下面的package中就可以了 ...原创 2020-12-11 11:30:02 · 573 阅读 · 0 评论