spring boot+ Intellj idea devtool 设置热部署
来源:互联网 发布:绵阳广电网络宽带 编辑:程序博客网 时间:2024/06/14 07:19
两步:
一、
1、CTRL + SHIFT + A --> 查找make project automatically --> 选中2、CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running
最后重启idea
二、使用spring-boot-1.3开始有的热部署功能
1、加maven依赖
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency>
2、开启热部署
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <fork>true</fork>
- </configuration>
- </plugin>
- </plugins>
- </build>
三、Chrome禁用缓存
F12(或Ctrl+Shift+J或Ctrl+Shift+I)--> NetWork --> Disable Cache(while DevTools is open)
至此,在idea中就可以愉快的修改代码了,修改后可以及时看到效果,无须手动重启和清除浏览器缓存
1 0
- spring boot+ Intellj idea devtool 设置热部署
- spring boot+ Intellj idea devtool 设置热部署
- spring boot+ Intellj idea devtools 设置热部署
- idea Spring boot 热部署
- idea spring-boot 热部署
- IntellJ IDEA+Spring Boot+JSP
- idea+spring-boot+devtools热部署
- Spring Boot + Intellij IDEA 热部署
- idea + spring-boot-devtools启动热部署
- Spring Boot热部署(Gradle+IDEA)
- IntelliJ Idea 实现热部署 Spring Loaded spring-boot-devtools
- idea设置热部署
- spring boot 热部署
- Spring Boot热部署
- spring boot 热部署
- spring boot热部署
- spring boot热部署
- Spring BOOT 热部署
- linux中给PHP安装mongodb的扩展
- PDO, MYSQLI的对比
- Qt框架浅析之三 ------ Qt元对象系统(二)
- artTemplate 模板引擎(简洁语法/原生语法)
- PHP 使用 Redis linux安装redis扩展
- spring boot+ Intellj idea devtool 设置热部署
- Keil总是全部编译的解决办法
- HTML知识点
- 1050. 螺旋矩阵(25)
- pca/princomp路径冲突问题解决
- 2017年1月6日读书
- hdoop 文本数据按列去重
- php 二分查找
- 重看css权威指南 part4