一、添加spring-boot-dectools热部署依赖启动器
在pom.xml文件中引入依赖:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency>
二、IDEA工具热部署设置
选择IDEA工具界面的【File】-->【Setting】选项,打开Compiler界面,然后选择【Build,Execution,Deployment】-->【Compile】,勾选右侧【Build project automatically】。
使用组合键"Ctrl+Shift+Alt+/",选择Registry选项,勾选"compiler.automake.allow.when.app.running"
部署完毕