SpringBoot热启动配置
build.gradle 中如下:
dependencies{
//热启动
implementation 'org.springframework.boot:spring-boot-devtools'
compile 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
}
File -> Settings -> Build -> Compiler 勾上 BuildProject automatically
application.yml配置文件中加入如下:
ctrl +shift +alt + /
选择Registry 勾上 complier.automake.allow.when.app.running
然后重启idea 万事大吉 可以看看热启动的样子喽!!!