springboot——热部署(2)

 

1、在application.properties文件中配置spring.thymeleaf.cache=false

2、设置中勾选上自动编译

3、

<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version>
</dependency>
 
4、进入项目根目录,执行  mvn spring-boot:run
d:
cd springboot
cd Web
mvn spring-boot:run
到此完成了热部署,即页面修改后会立即生效

 

posted @ 2017-09-27 12:40  mabiao008  阅读(145)  评论(0编辑  收藏  举报