eclipse中这样设置就可以
在pom.xml中设置
<!-- 配置springBoot项目的热部署启动 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
在pom.xml中设置
<!-- 配置springBoot项目的热部署启动 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>