springboot熱部署

    1. <!-- 熱部署 -->
    2. <dependency>
    3. <groupId>org.springframework.boot</groupId>
    4. <artifactId>spring-boot-devtools</artifactId>
    5. <optional>true</optional>
    6. <scope>true</scope>
    7. </dependency>

  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.springframework.boot</groupId>
  5. <artifactId>spring-boot-maven-plugin</artifactId>
  6. <configuration>
  7. <!-- 沒有該配置,devtools 不生效 -->
  8. <fork>true</fork>
  9. </configuration>
  10. </plugin>
  11. </plugins>
  12. </build>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章