SpringBoot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
SpringBoot Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
今天在写junit测试的时候莫名其妙报这个错,
经过排查是因为你在test包下,和你java代码的包路径不一致所造成的.
一起交流进步.扫描下方QQ二维码即可
![](https://www.cnblogs.com/images/cnblogs_com/bj-xiaodao/1476283/o_qq%20%E7%BE%A4%E5%9B%BE%E7%89%87.png)