介绍
本篇文章给大家分享的是有关什么是弹簧引导热部署Devtools,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。
<强> 1 pom.xml文件强>
注:热部署功能弹簧-引导- 1.3开始有的
& lt; !——添加依赖——比; & lt; dependency> & lt; groupId> org.springframework.boot & lt; artifactId> spring-boot-devtools & lt; !——可?true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入——比; & lt; optional> true & lt;/dependency>
注:项目中添加spring-boot-maven-plugin,主要在eclipse中使用,想法中不需要添加此配置。
引用>& lt; build> & lt; plugins> & lt; plugin> & lt; groupId> org.springframework.boot & lt; artifactId> spring-boot-maven-plugin & lt; configuration> & lt; fork> true & lt;/configuration> & lt;/plugin> & lt;/plugins> & lt;/build><强> 2更改主意配置强>
1)“文件”→“设置”→“几种构建、执行部署”→“编译”,选中打勾“自动构建项目”。
2)组合键:“Shift + Ctrl + Alt +/?选择“注册表”,选中打勾“compiler.automake.allow.when.app.running”。
3 Chrome禁用缓存
F12或者“Ctrl + Shift + I”,打开开发者工具,“网络”选项卡下选中打勾“禁用缓存(虽然DevTools打开)”
什么是弹簧引导热部署Devtools