解决java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use错误

今天在学习springboot结合redis实现二级缓存时,项目依赖引入完成后想要测试redis是否可以连接成功,结果在测试时出现如下错误日志 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBoot
相关文章
相关标签/搜索