在项目的pom加上 org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugins maven-surefire-plugin true