热更使用 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
标签:compile,Preferences,Settings,2023.3,Build,devtools,springboot
From: https://www.cnblogs.com/guanchaoguo/p/17061534.html