0
点赞
收藏
分享

微信扫一扫

SpringBoot热部署

崭新的韭菜 2022-01-30 阅读 193

SpringBoot热部署

1.添加spring-boot-devtools依赖

<dependency> 
    <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-devtools</artifactId> 
    <version>2.0.4.RELEASE</version> 
</dependency>

2.配置使java文件和静态资源热部署

	Edit Configurations,配置部署的程序

在这里插入图片描述

3.配置application.yml

添加 jsp或Thymeleaf等页面模板引擎
spring:
  thymeleaf:
    cache: false
举报

相关推荐

0 条评论