Idea+spring-boot+devtools 实现项目的热部署
2017-11-28 00:00
337 查看
添加maven依赖:
添加spring-boot配置:
Idea设置:
Ctrl+Shift+a查找make project automatically并勾选,如下图:
Ctrl+Shift+Alt+/ 选择Registry,勾选compiler.automake.allow.when.app.running
确定即可,重启idea即可生效
修改代码后,Ctrl+s或Ctrl+F9即可热部署
Ctrl + Shift+F9强制重新部署
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
添加spring-boot配置:
#配置热部署目录 spring.devtools.restart.additional-paths=src/main/java spring.devtools.restart.enabled=true spring.devtools.restart.exclude=resources/**
Idea设置:
Ctrl+Shift+a查找make project automatically并勾选,如下图:
Ctrl+Shift+Alt+/ 选择Registry,勾选compiler.automake.allow.when.app.running
确定即可,重启idea即可生效
修改代码后,Ctrl+s或Ctrl+F9即可热部署
Ctrl + Shift+F9强制重新部署
相关文章推荐
- IntelliJ IDEA中Spring Boot项目使用spring-boot-devtools无法实现热部署/热更新的问题解决
- 【IntelliJ IDEA】spring boot项目在idea实现自动部署
- IDEA下开发SpringBoot项目,实现代码的热部署/热加载
- 用IDEA实现spring-boot-devtools热部署方法
- SpringBoot配置devtools实现热部署(eclipse和idea)
- springboot项目利用devtools实现热部署,改动代码自动生效
- IntelliJ IDEA中SpringBoot项目通过devtools实现热部署的方法
- 基于Maven的SpringBoot项目实现热部署的两种方式
- IntelliJ Idea 实现热部署 Spring Loaded spring-boot-devtools
- Spring-Boot项目实现热部署
- spring boot项目中使用spring-boot-devtools模块进行代码热部署,避免重新启动web项目
- spring boot项目中使用spring-boot-devtools模块进行代码热部署,避免重新启动web项目
- SpringBoot项目在IntelliJ IDEA中实现热部署
- 使用IDEA 中 实现springboot 2.0.0.M7 热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- Spring Boot系列教程三:使用devtools实现热部署
- spring boot项目中使用spring-boot-devtools模块进行代码热部署,避免重新启动web项目
- spring boot项目中使用spring-boot-devtools模块进行代码热部署,避免重新启动web项目
- SpringBoot项目在IntelliJ IDEA中实现热部署
- Spring Boot系列教程三:使用devtools实现热部署