很久之前就有接触到IDEA开发工具,提示等部分功能还是很不错的,但是一度因为修改代码就要重启而浪费时间,一次次的煎熬,终于找到了热部署。。。。

       首先,我们要做的就是在pom.xml中引用依赖的插件,springboot 1.3之后支持

      <dependency>

                  <groupId>org.springframework.boot</groupId>

                 <artifactId>spring-boot-devtools</artifactId>

                 <optional>true</optional>

      </dependency>

      然后设置IDEA

SpringBoot项目IDEA热部署

勾选这一项,setting界面怎么进入我就不废话了,

再然后 组合键:Shift+ALT+Ctrl+/ ,选择“Registry”,回车,找到“complier.automake.allow.when.app.running” 勾选上,图如下

SpringBoot项目IDEA热部署

。。。。就没有然后了,赶快去试试吧!!!

相关文章:

  • 2021-10-19
  • 2022-12-23
  • 2021-06-29
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2021-04-20
  • 2021-09-07
  • 2021-09-19
  • 2021-12-09
  • 2021-07-24
  • 2021-07-27
相关资源
相似解决方案