最近把公司的通用微服务框架升级了一下,遇到不少问题,踩了很多坑,做一下记录。
1、bootstrap.yml文件不生效
2、gateway lb://服务报错503 Service Unavailable
参考文章:
【Spring Cloud】spring-cloud2020和spring-cloud-alibaba2021问题记录https://www.cnblogs.com/yangchongxing/p/15042033.html
https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#config-first-bootstrap
排查问题过程中看到一篇讲解源码的文章,感觉还可以:
SpringCloud高级应用(Gateway工作流程,OpenFeign实现远程调用过程,Stream)
https://blog.csdn.net/m0_46690280/article/details/116375936
Spring Cloud Gateway 官方文档:
https://cloud.spring.io/spring-cloud-gateway/reference/html/
