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

猜你喜欢

转载自www.cnblogs.com/bj-xiaodao/p/11023045.html