SpringBoot2.0 (二) 热部署

一、在pom文件中添加devtools依赖


	  org.springframework.boot
	  spring-boot-devtools
	  true

 

二、如果是idea,还需要做一些设置 

1).勾选Make project automatically
SpringBoot2.0 (二) 热部署_第1张图片

2).点击 ctrl+shift+alt + / 调出下边的选项卡,点击Registry

勾选下边这个选项

SpringBoot2.0 (二) 热部署_第2张图片

 

 

你可能感兴趣的:(SpringBoot)