idea热启动,不用每次改代码都重启服务

1 ctrl+shift+alt+/
选择Registry
2 勾选 compiler.automake.allow.when.app.running(可能不按首字母排序,可以多找找)
idea热启动,不用每次改代码都重启服务
3、Setting—>Compiler—>勾选Build project automatically
idea热启动,不用每次改代码都重启服务
4、pom.xml增加依赖(适用于springboot项目)
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

idea热启动,不用每次改代码都重启服务