SpringBoot 热启动设置(完整-不失效)

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 万事大吉 可以看看热启动的样子喽!!!


版权声明:本文为qq_40989066原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。