SpringBoot自带热加载开发工具

      SpringBoot自带热加载开发工具

maven配置:

<!-- SpringBoot自带热加载开发工具 -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
</dependency>

 IDEA配置

 快捷键:shift+ctrl+alt+/

之后选择Registry...

重启IDEA,这样就会以热加载的方式启动项目

原文地址:https://www.cnblogs.com/gaogaoyanjiu/p/8291585.html