springboot热部署
来源:互联网 发布:阿里云 搭建java服务器 编辑:程序博客网 时间:2024/06/05 18:31
热部署指的是在应用正在运行的时候升级软件(修改类,添加方法等),却不需要重新启动应用。
springboot devtools配置热部署:
一、在pom配置文件中<dependencies>标签添加spring boot devtools依赖包
<!-- spring boot devtools 依赖包. --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope>true</scope></dependency>二、在pom配置文件中<build>标签中添加
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!-- 如果没有该项配置,devtools不会起作用,即应用不会restart --> <fork>true</fork> </configuration></plugin>三、至此配置添加完成,如果没有更新/导入依赖,需要等待工程加载完毕
四、eclipse可以自动进行编译
五、idea配置完springboot devtools,Ctrl+F9重新编译
阅读全文
0 0
- springboot-热部署
- SpringBoot热部署
- springboot实现热部署
- springboot热部署
- SpringBoot热部署配置
- SpringBoot+devtools 热部署
- Springboot(热部署)
- SpringBoot热部署
- SpringBoot+SpringLoaded热部署
- SpringBoot实现热部署
- springboot热部署配置
- SpringBoot-热部署-maven
- springboot热部署
- SpringBoot + devtools热部署
- SpringBoot-02热部署
- Springboot 热部署
- SpringBoot 热部署方式
- springboot 热部署
- 冒泡排序及递归
- 汇编第十三节-int指令
- C语言内存管理和动态内存开辟
- 断点续传和多线程下载
- springBoot整合redis报错报错
- springboot热部署
- MyBatis工具类的封装
- 求出0—999之间的所有“水仙花数”。
- jquery中的switch用法及注意问题
- 事件对象(二)
- Redis服务搭建与详细介绍
- 求Sn=a+aa+aaa+aaaa+aaaaa的前五项之和,其中a是一个数字 例如:2+22+222+2222+22222
- PAT 乙级 1072. 开学寄语(20)
- 设计模式之观察者模式