1、springboot项目可经过配置pom文件 spring
<!-- 热部署 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>true</scope> <optional>true</optional> </dependency>
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!-- 没有该配置,devtools 不生效 --> <fork>true</fork> </configuration> </plugin>
而后修改 configurations 配置 springboot
最后在配置文件中配置maven
spring: devtools: restart: enabled: false
perfect end!spring-boot
2、或者安装jrebel插件进行启动插件