1,配置pom文件 在pom文件的bulid加入下面这段配置 <plugin> <!-- springBoot编译插件--> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin