随笔分类 - Spring Cloud
摘要:Spring Cloud 网关 EnableZuulProxy 新建项目 ApiGetway pom.xml application.yml 启动相关的服务 分别访问 http://localhost:5555/a/hello?name=AAAA http://localhost:5555/b/he
阅读全文
摘要:目录 1 创建注册中心:EurekaCenter pom.xml文件 application.yml 启动服务 访问 http://localhost:1313/ 注册中心搭建完毕; 2 创建服务提供者:ServerOne pom.xml文件 application.yml 创建业务DemoCont
阅读全文
摘要:关于getForEntity,postForEntity,分别提供了三个接口 在上一节中,我们搭建了注册中心,服务提供者; 新建DemoController 启动项目,并访问http://localhost:8080/hello?name=jack 输出 创建服务消费者SERVER-TWO ①创建步
阅读全文
摘要:吐槽 Spring Cloud 版本之间的变化有些大呀!!坑死人了!! Spring-Cloud 版本:Finchley.SR2 Spring-Boot 版本:2.0.9.RELEASE 目录: 1.搭建Eureka注册中心; 2.搭建服务提供者,并向注册中心注册自己; 3.搭建服务消费者,消费服务
阅读全文