spring boot + idea 热部署
只需3个步骤,让你打开热部署
第一
首先在pox.xml 里面添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
和
<configuration>
<fork>true</fork>
</configuration>
如下图:
第二
然后再设置里面,勾选 Build project antomatically
如下图:
第三
在按快捷键 shift + ctrl + alt + / ,会弹出一个提示框,选择第一个
勾选红框里面的内容
最后重启tomcat , 完成!