SpringBoot项目在IntelliJ IDEA中实现热部署
来源:互联网 发布:游族网络2017定增 编辑:程序博客网 时间:2024/05/23 19:13
一、开启idea自动make功能
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中就可以愉快的修改代码了,修改后可以及时看到效果,无须手动重启和清除浏览器缓存
阅读全文
0 0
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在intellij idea中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- IntelliJ IDEA中实现SpringBoot热部署
- springboot 在idea中实现热部署
- Intellij IDEA SpringBoot项目热部署解决方案
- 关于SpringBoot在idea中实现热部署
- idea中springboot实现热部署
- Springboot idea中实现热部署
- Intellij IDEA中实现热部署
- Intellij IDEA中实现热部署
- Jmeter 快捷键
- 统计学习
- 使用thumbnailator操作图片
- Ubuntu关机重启命令汇总
- Java内存泄漏案例
- SpringBoot项目在IntelliJ IDEA中实现热部署
- 【面试】请写一个java死锁的例子
- 记一次地址服务优化(Redis使用优化)
- 前端之路——jQuery第四课(结合所学知识,制作一个具有jq特效的导航栏)
- Android2017年最值得关注的25个库
- iOS Charles~http抓包
- 背景图的兼容性问题
- 用深度学习做个艺术画家 ——模仿实现PRISMA
- Java内存泄漏与问题解决