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

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

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

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

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

原文地址:https://www.cnblogs.com/Tpf386/p/11024739.html