pom配置
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.example.demo.DemoApplication</mainClass>
<fork>true</fork>
</configuration>
</plugin>
</plugins>application.yml配置
spring:
devtools:
restart:
enabled: true开启idea自动make功能
CTRL + SHIFT + A –> 查找make project automatically –> 选中

CTRL + SHIFT + A –> 查找Registry –> 找到并勾选compiler.automake.allow.when.app.running

版权声明:本文为qq_29988051原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。