springboot在eclipse实现热部署

eclipse使用spring-tool-suite插件创建springboot项目,项目创建完成后。

选中项目,右键 Spring Tools  --> Add Boot Devtools

点击 Add Boot Devtools ,项目的pom.xml 文件会添加 devtools 依赖

<dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-devtools</artifactId>
</dependency>

项目上增加了 [devtools] 。对类,配置文件进行修改,保存后项目会自动热部署

猜你喜欢

转载自www.cnblogs.com/QW-lzm/p/9142789.html