我們在利用IntelliJ IDEA開辟springboot項目時,每次點竄都需要重啟IntelliJ IDEA,很是的麻煩,影響開辟的效率,那么IntelliJ IDEA怎么熱擺設springboot項目呢,下面本文就介紹一下。
起首,需要在springboot項目標pom.xml文件中引入相關的依靠,maven依靠為:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
和插件撐持:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
如圖所示。
然后點擊IntelliJ IDEA左上角的“file”,如圖所示。
然后選擇下拉菜單中的“settings...”,進入idea的系統功能設置,如圖所示。
進入IntelliJ IDEA的settings功能之后,選擇左側菜單的“Build,Execution,Deployment”,如圖所示。
然后選擇此中的“Compiler”,然后把右面的“Build project automatically”前面的復選框勾選,如圖所示。
然后利用快捷鍵“Ctrl+Shift+A”,搜刮“Registry”,如圖所示。
然后把如圖所示的key進行勾選就可以了,如圖所示。
然后需要重啟IntelliJ IDEA,不然可能不生效,以上就是IntelliJ IDEA怎么熱啟動springboot項目標方式介紹,但愿可以幫到大師。
0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!