springboot 热更 2023.3

热更使用 devtools 或者 alt + shit + f9

idea

  • File|Settings|Preferences | Build, Execution, Deployment | Compiler : Build project automatically

  • File|Settings|Preferences | Advanced Settings: Allow auto-make to start even if developed aplication is crrenty running

  • Ctrl + Shift + Alt + / 然后进入Registry :
    compiler.automake.trigger.delay 100
    compile.document.save.trigger.delay 100
    compile.document.save.enable

gradle

implementation 'org.springframework.boot:spring-boot-devtools'

springboot

spring:
  application:
    name: dataExChangePlatform
  devtools:
    restart:
      enabled: true
      additional-paths: src/main/java
      exclude: WEB-INF/**
  freemarker:
    cache: false
posted @ 2023-01-19 15:18  vx_guanchaoguo0  阅读(24)  评论(0编辑  收藏  举报