1.引入依赖
<!-- https://mvnrepository.com/artifact/org.springframework/springloaded -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.8.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>
2.SpringBoot配置
spring:
thymeleaf:
cache: true
devtools:
restart:
enabled: true
设置之后,在修改代码后就不需要再重启项目,为我们节约大量的开发时间
最后
以上就是热情月饼最近收集整理的关于SpringBoot如何开启开发者模式的全部内容,更多相关SpringBoot如何开启开发者模式内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复