spring-boot 1.5.15 在idea中实现:修改html内容,刷新浏览器即可看到变化

1: pom文件中加入依赖

   

	<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<optional>true</optional>
		</dependency>

2:设置idea的设置(下面设置,上网都说只需要设置Buidl project....即可,经过亲自设置,发现并不行)

spring-boot 1.5.15 在idea中实现:修改html内容,刷新浏览器即可看到变化

3:在idea中快捷键 alt+shif+ctrl+/

然后选择

spring-boot 1.5.15 在idea中实现:修改html内容,刷新浏览器即可看到变化

找到:

spring-boot 1.5.15 在idea中实现:修改html内容,刷新浏览器即可看到变化

然后重启iDEA,修改html内容后多刷新几次就可以看到了。