在使用@SpringBootTest注解时,报这个错。
我使用的springboot版本是2.1.1的
我使用的spring-test是5+版本的。应该是版本不匹配造成的,降低spring-test的版本到4.+ 就解决了。