今天写SpringBootTest测试的时候,一直报java.lang.IllegalStateException: Found multiple @SpringBootConfiguration annotated classes [Generic bean: class……错误
SpringBootTest
java.lang.IllegalStateException: Found multiple @SpringBootConfiguration annotated classes [Generic bean: class……
指定当前测试类的class名即可@SpringBootTest(classes = ……Tests.class)
@SpringBootTest(classes = ……Tests.class)