pom.xml中不仅添加了spring-boot-starter-test依赖,还添加了spring-test依赖,
spring-boot-starter-test
spring-test
将spring-test注释掉之后项目启动成功。