在pom.xml配置文件加入如下依賴,代碼修改就不須要重啓了。spring
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
代碼修改完畢後,須要從新生成下,可是不用從新啓動調試。分佈式
分佈式項目,這個插件可能有問題,須要注意。spring-boot