springboot项目自动更新修改代码工具

 

在pom.xml配置文件加入以下依赖,代码修改就不需要重启了。

  <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      <scope>runtime</scope>
      <optional>true</optional>
   </dependency>

 代码修改完毕后,需要重新生成下,但是不用重新启动调试。

 

分布式项目,这个插件可能有问题,需要注意。

 

posted on 2019-06-14 18:06  荆棘人  阅读(588)  评论(0编辑  收藏  举报

导航