好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

一篇文章带你搞定SpringBoot中的热部署devtools方法

今天带来一篇文章带你搞定SpringBoot中的热部署devtools方法教程详解

一、前期配置

创建项目时,需要加入 DevTools 依赖

二、测试使用

(1)建立 HelloController

@RestController
public class HelloController {

  @GetMapping("/hello")
  public String hello(){
    return "hello devtools";
  }
}


对其进行修改:然后不用重新运行,重新构建即可:只加载变化的类


以上就是关于一篇文章带你搞定SpringBoot中的热部署devtools方法全部内容,感谢大家支持。

查看更多关于一篇文章带你搞定SpringBoot中的热部署devtools方法的详细内容...

  阅读:42次