spring boot 工程热部署

我的idea版本是:

IntelliJ IDEA 2022.2.2 (Community Edition)
Build #IC-222.4167.29, built on September 13, 2022
Runtime version: 17.0.4+7-b469.53 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1912M
Cores: 8
Non-Bundled Plugins:
    dev.flikas.idea.spring.boot.assistant.plugin (0.14.5)

Kotlin: 222-1.7.20-release-201-IJ4167.29

打开两个开关


加上springboot的热部署依赖

 <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      <scope>runtime</scope>
      <optional>true</optional>
  </dependency>
posted @ 2022-10-10 01:10  周XX  阅读(88)  评论(0编辑  收藏  举报