idea熱啓動,不用每次改代碼都重啓服務

1 ctrl+shift+alt+/
選擇Registry
2 勾選 compiler.automake.allow.when.app.running(可能不按首字母排序,可以多找找)
在這裏插入圖片描述
3、Setting—>Compiler—>勾選Build project automatically
在這裏插入圖片描述
4、pom.xml增加依賴(適用於springboot項目)
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章