java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context

描述:在springboot用logback测试时出现此错误

解决方法:修改文件目录结构,最好把启动类和测试类在放在项目包的根目录下



猜你喜欢

转载自blog.csdn.net/weixin_39274753/article/details/80956884