第一步:
在pom文件添加依赖:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </dependency>
第二步: 在idea编译器上设置
然后,键盘按键
ctrl + shift + alt + /
扫描二维码关注公众号,回复:
4002613 查看本文章
![](/qrcode.jpg)
重启idea,即可。