关于springboot热部署工具的使用

1.导入热部署插件依赖

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

2. 这时候,启动项目后,更改了代码,按ctrl + F9就会自动编译 ,这种方式还是太麻烦了,如果不想用这种方式,就需要再配置一下

3. settings => Compiler => 把Build project automatically 这个选项给勾上

 

 

4. 按快捷键 ctrl + shift + alt + /   选择第一项 Registry..  找到compiler.automake.allow.when.app.running 勾选上

 

 

 

 

这样配置好后,当我们修改完代码,从idea切换到其他程序的时候,它就会自动编译了

 

 

不过有时候感觉不是很灵敏的样子..

posted @ 2020-11-20 21:09  面包&#127838;  阅读(137)  评论(0)    收藏  举报