Spring Boot 入门整合目录
引入devtools依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 这个必写 要不不好用 -->
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
idea设置
新版idea
旧版
然后Ctrl+Alt+shift+/
这样更改类就会自动重启了