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