springboot + idea2018.1.5 热部署

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

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

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

勾选 Build Project Automatically

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

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

寻找这一项,

compiler.automake.allow.when.app.running

并勾选开启。

第四步: 然后重启 IDEA 就ok

猜你喜欢

转载自blog.csdn.net/yangmingsen1999/article/details/81869024
今日推荐