关于SpringBoot在idea中实现热部署
2017-10-29 09:46
543 查看
关于SpringBoot在idea中实现热部署
注意:开启热部署后不要频繁ctrl+s保存,因为一旦保存就会重新部署,你只需要在需要的时候ctrl+s即可,jrebel中可以设置自动部署的间隔时间,可是dev-tools就不清楚了SpringBoot项目中
在pom.xml中
dependencies标签中
<!--springBoot工程实现热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
build->plugins标签中
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork><!--注意要修改这里--> </configuration> </plugin>
application.properties/application.yml中
Thymeleaf,Freemarker,Groovy,Velocity等视图页面禁用缓存
spring.thymeleaf.cache=false spring.freemarker.cache=false spring.groovy.template.cache=false spring.velocity.cache=false
IDEA中
开启自动编译
File->Other Settings->Default Settings找到全局设置界面 ->Build,Execution,Deployment -> Compiler -> 勾选 Make project automatically(only works while not running / debugging)
修改idea行为
CTRL + SHIFT + A –>输入并进入Registry–>勾选 compiler.automake.allow.when.app.runningGoogle Chrom浏览器中
禁用缓存
CTRL+SHIIFT+J进入开发者界面中 -> Network 选项 -> 勾选Disable cache相关文章推荐
- 关于SpringBoot在idea中实现热部署
- springboot 在idea中实现热部署
- spring boot热部署 关于Idea不好使的问题
- 极其简单的 使用IDEA 中 实现springboot 热部署 (spring boot devtools版)
- idea+springboot+JRebel 实现热部署
- idea spring boot 实现热部署
- IDEA 实现 SpringBoot 热部署
- 使用IDEA 中 实现springboot 2.0.0.M7 热部署
- 用IDEA实现spring-boot-devtools热部署方法
- SpringBoot配置devtools实现热部署(eclipse和idea)
- idea+springboot实现热部署
- Springboot idea中实现热部署
- springboot+IntelliJ IDEA实现热部署
- spring boot devtools在Idea中实现热部署方法
- 关于springBoot项目在IDEA中热部署问题
- IDEA下开发SpringBoot项目,实现代码的热部署/热加载
- 【IntelliJ IDEA】spring boot项目在idea实现自动部署
- SpringBoot+gradle+idea实现热部署和热加载
- IDEA SpringBoot 热部署+html修改无需make自动刷新
- 关于IDEA中创建springboot+security+jpa