热部署devtools(开发阶段时使用)
1.Adding devtools to your project
子模块的pom中
org.springframework.boot
spring-boot-devtools
2.Adding plugin to your pom.xml
父工程的pom中
org.springframework.boot
spring-boot-maven-plugin
true
true
3.Enabling automatic build
4.Update the value of
idea的快捷键,ctrl+shift+alt+/,选registry。