mac intellij SpringBoot熱部署問題

一、設置 
1、command + SHIFT + A --> 查找make project automatically --> 選中 

2、command + SHIFT + A --> 查找Registry --> 找到並勾選compiler.automake.allow.when.app.running 

二、添加依賴

  1. <dependency>  
  2.             <groupId>org.springframework.boot</groupId>  
  3.             <artifactId>spring-boot-devtools</artifactId>  
  4.             <optional>true</optional>  
  5. </dependency>

    1. <build>  
    2.         <plugins>  
    3.             <plugin>  
    4.                 <groupId>org.springframework.boot</groupId>  
    5.                 <artifactId>spring-boot-maven-plugin</artifactId>  
    6.                 <configuration>  
    7.                     <fork>true</fork>  
    8.                 </configuration>  
    9.             </plugin>  
    10.         </plugins>  
    11.     </build>  
      




發佈了68 篇原創文章 · 獲贊 16 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章