其实只要在pom.xml文件中的<dependencies></dependencies>标签里加以下代码 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-devtools</artifactId> 4 <scope>runtime</scope> 5 </dependency> 相关文章: