Spring Boot提供一个注解用于替换标准的spring-test @ContextConfiguration注解,该组件工作方式是通过SpringApplication创建用于测试的ApplicationContext

    不要忘记在测试用例上添加,否则该注解将被忽略。