01.导入依赖
org.springframework.boot spring-boot-devtoolsruntime true
02.配置idea
勾选Build project automatically
Ctrl+Shift+Alt+/ 选择Registry
勾选compiler.automake.allow.when.app.running

01.导入依赖
org.springframework.boot spring-boot-devtoolsruntime true
02.配置idea
勾选Build project automatically
Ctrl+Shift+Alt+/ 选择Registry
勾选compiler.automake.allow.when.app.running