spring boot+ Intellj idea devtool 设置热部署
来源:互联网 发布:c语言中大小写字母转换 编辑:程序博客网 时间:2024/06/06 19:04
两步:
一、
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
- 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 热部署
- JavaScript新创建对象的一些属性和方法
- 朴素贝叶斯分类算法
- 希腊字母
- JAVA设计模式之工厂模式(简单工厂模式+工厂方法模式)
- laravel redis 扩展冲突的问题分析:Fatal error: Non-static method Redis::keys() cannot be called statically
- spring boot+ Intellj idea devtool 设置热部署
- 字符串匹配的KMP算法
- 实现textarea限制输入字数
- 是时候学习RxJava了
- 【算法】字符串分类
- 0002_Add Two Numbers
- Map集合的四种遍历方式
- Floyd多源最短路径算法
- mysql 开启远程访问