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代码的包路径不一致所造成的.

posted @ 2019-06-14 14:21  北京de小刀  阅读(3028)  评论(0编辑  收藏  举报