SpringBoot项目在IntelliJ IDEA中实现热部署
来源:互联网 发布:java 线程死锁 编辑:程序博客网 时间:2024/06/05 16:58
原文转自 http://blog.csdn.net/my_chen_suo_zhang/article/details/69396808
一、开启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中实现热部署
- 关于Android Studio导入工程卡在Building Gradle上
- 并查集_无线网络
- java基础知识点整理大全
- Windows配置GitBook
- TFS2013 数据库链接sqlserver express(2012)
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SQL Server之存储过程基础知识
- 第十四周
- s3c2440 SDRAM实验
- Echart的angularjs封装
- 如何在windows下安装配置pyspark notebook
- 更改Visual Studio 的主题设置
- 观察者模式【Observer Pattern】
- 水果消除(DPS)