
标签: spring-boot

spring-boot
maven dependencies增加
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency>
project增加
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <!--fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
- <span style="white-space:pre"> </span><fork>true</fork>
- </configuration>
- </plugin>
- </plugins>
- </build>
idea设置
ctrl+shift+alt+/
重启项目即可。