1. 程式人生 > >springboot eclipse 熱部署

springboot eclipse 熱部署

springboot熱部署配置很簡單,並且配置好後開發變的非常舒服,修改東西后再也不用重新啟動服務了!

一、pom.xml新增依賴


   <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>
二、eclipse設定修改,下圖中內容勾選:

三、重啟服務修改點兒內容(頁面檔案、java檔案)試試。