Spring-boot进行热部署
来源:互联网 发布:软件信息服务比赛 编辑:程序博客网 时间:2024/06/06 13:22
Spring-boot进行热部署
spring-boot实现热部署需要执行两步:
- pom.xml中添加依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
- pom.xml中配置plugin
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
------ restartedMain
修改返回值,新增方法,新增类都会进行热部署
OK,现在可以尝试着添加方法修改返回值验证项目是否会自动重启
修改返回值,新增方法,新增类都会进行热部署
OK,现在可以尝试着添加方法修改返回值验证项目是否会自动重启
0 0
- Spring-boot进行热部署
- spring boot 热部署
- Spring Boot热部署
- spring boot 热部署
- spring boot热部署
- spring boot热部署
- Spring BOOT 热部署
- spring boot热部署
- Spring Boot 热部署
- spring boot热部署
- Spring Boot 热部署
- Spring Boot热部署
- Spring Boot-------热部署
- spring boot 热部署
- Spring-boot 热部署
- SpringBoot学习:使用spring-boot-devtools进行热部署
- SpringBoot:使用spring-boot-devtools进行热部署
- SpringBoot学习:使用spring-boot-devtools进行热部署
- GAN相关工作介绍
- 函数指针实例2
- Swift の Attribute
- setTimeout闭包问题
- android下读取excel信息,插入信息至excel中
- Spring-boot进行热部署
- STM32串口下载
- 汉诺塔系列2 (sdut oj)
- linux 结构目录
- todos
- [转]基于EasyPlayer和EasyPusher实现安卓平台的双向视频对讲
- 【LeetCode】Swap Nodes in Pairs
- python字符串拼接
- Deep Learning