前言
2019-7-7 更新Blog&Github
SpringCloud-Greenwich & SpringCloud-Finchley 两个版本的骨架搭建
两个版本对应两条分支
master分支已融合了Greenwich分支
因为贴图比较麻烦。能尽量用简述和代码说清楚的就不贴图。
GitHub
地址:https://github.com/ithuhui/hui-base-springcloud
分支:finchley | greenwich
模块:【hui-base-springcloud-config】
finchley分支配置中心配置存放在git-> https://github.com/ithuhui/hui-base-springcloud-config-repo
Code
Note
- springCloud-finchely使用eureka做服务发现注册中心,但是eureka2.x闭源了,greenwich的版本我使用了consul代替了eureka
- 同样的,既然使用了consul,我索性把配置中心也交给了consul,放弃了springcloud-starter-config,改用了consul-config替代,不然还要搞个git服务做配置文件存储
- 在网关配置方面,与第一点相同,springcloud推出了springcloud-starter-gateway替代了zuul
- tx-lcn是同步的情况下,提供txc和tcc两种模式的分布式事务
项目
不同版本对应不同分支
springcloud-greenwich采用了consul-config,不需要下方的hui-base-springcloud-config-repo
【SpringCloud】完整工程 https://github.com/ithuhui/hui-base-springcloud
【Config-Server】配置中心配置文件:https://github.com/ithuhui/hui-base-springcloud-config-repo
Author
作者:HuHui
转载:欢迎一起讨论web和大数据问题,转载请注明作者和原文链接,感谢