Jrebel Hot Deployment Plugin I believe a lot of people know, but this is a commercial plug-in, Spring-boot framework also provides a similar function, namely: Devtools, the key is free! Here's how to use it:
First, add Devtools dependency
dependencies { compile (' org.springframework.boot:spring-boot-starter-web ') compile (' Org.springframework.boot:spring-boot-devtools ') compileonly (' Org.projectlombok:lombok ') testcompile (' Org.springframework.boot:spring-boot-starter-test ')}
Just add the org.springframework.boot:spring-boot-devtools dependency.
Second,the idea of enabling project automatic construction
third,idea in compiler.automake.allow.when.app.running attribute changed to True
This option is very discreet, especially on Mac, the correct treasure hunt posture is as follows (the average person I don't tell him):
3.1 Keymap, other, maintenance
Note This shortcut key: SHIFT + OPTION + COMMAND +/
3.2 back to the Idea main window, press these 4 magic key combinations
3.3 Then find the compiler.automake.allow.when.app.running option and open it
Then turn it off, the Gaocheng.
Now as soon as the code changes, and then save, it will trigger the compilation in real-time, and reload, the implementation of the non-restart of the hot deployment, development debugging is very convenient.
Spring-boot Crash (2) Devtools Heat deployment