IDEA热加载springboot

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012865381/article/details/79539690

第一步: 在pom.xml增加下面依赖

<dependency>
     <groupid>org.springframework.boot</groupid>
     <artifactid>spring-boot-devtools</artifactid>
</dependency>

第二步: 打开idea ,File->Settings-> Build-Execution-Deployment -> Compiler

勾选 Make Project Automatically


第三步: 按 Shift+Ctrl+A (windows,mac是 command+shift+A) 

将看到弹窗 Enter Action or option name,输入"registry",双击第一项"Registry..." ,会弹出另一个窗口,寻找

compiler.automake.allow.when.app.running
这一项,并勾选开启。然后关闭窗口。



第四步: 重启 IDE

猜你喜欢

转载自blog.csdn.net/u012865381/article/details/79539690