springcloud 微服务化之路

写在最前

自2018年初开始,生产环境全线转为springcloud 微服务化,各种接口均以restful风格的http接口提供。html

版本version

  • 前期以 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>
相关文章
相关标签/搜索