IntelliJ IDEA 2017版 spring-boot2.0.4+mybatis 自动部署的细节问题

一.加载pom依赖包

1  <!--spring-boot开发热部署-->
2         <dependency>
3             <groupId>org.springframework.boot</groupId>
4             <artifactId>spring-boot-devtools</artifactId>
5             <optional>true</optional>
6  </dependency>
View Code

二.使用描述

(1)当你使用IDE开发的时候,启动服务器,修改代码后,需要build一下,否则IDE不会自动部署,因为IDE没有保存的功能,同时,有时候自动部署会失效

(2)当你使用eclipse时候,保存就会自动部署项目

三.项目源码

https://github.com/liushaoye/02-transaction/tree/devtools

猜你喜欢

转载自www.cnblogs.com/liuyangfirst/p/9279233.html