![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring cloud
懒惰的小蜗牛
积硅步至千里
展开
-
nocas配置加载失败解决-笔记
nacos配置中心原创 2024-06-06 17:01:06 · 174 阅读 · 0 评论 -
Spring cloud学习之Zuul入门篇
最近需要做一次分享,简单的demo肯定拿不出来,因此打算看看源码弄清楚Zuul的一次转发准备工作(本文使用的Spring cloud版本是Greenwich:SR1):注册中心、zuul网关、具体后端服务先搭建这几个服务:以上是建一个空maven工程,用做父工程,接下来搭建eureka-server若出现jar无法导入的情况,在父工程pom.xm...原创 2019-05-28 14:46:06 · 285 阅读 · 0 评论 -
【踩过的坑】Spring响应数据封装统一对象返回,调用方报空指针
背景:Spring版本4.3.22;微服务A提供接口供其他服务调用,奇葩点:A服务响应封装了统一对象返回,对象如下:@Getter@Setter@NoArgsConstructorpublic class Response { /** 响应状态码 **/ private Integer code; /** 异常消息 **/ private String...原创 2019-06-11 15:28:03 · 851 阅读 · 0 评论