自2018年初开始,生产环境全线转为springcloud 微服务化,各种接口均以restful
风格的http
接口提供。html
springboot 1.5.8.RELEASE
+ spring-cloud Dalston.SR4
来搭建springboot 2.0.1.RELEASE
+ spring-cloud Finchley.RELEASE
spring-boot-devtools
支持代码的热部署,具体可参考:spring
功能介绍:springboot
只要代码一修改,而后保存,就会实时触发编译,并从新加载,实现了不重启的热部署。restful
实际:开发阶段,太过频繁的触发编译,没法自我控制,索性弃用。spring-boot
<!-- 代码 热部署 用--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>