一、添加依赖
在项目 pom.xml
中添加依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
二、配置 IDEA
-
Build,Execution,Deployment
->
Compiler
,勾选Build project automatically
-
Advanced Settings
,勾选Allow auto-make to start even if developed application is currently running
- 重启服务即可
网友评论