![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Cloud
5210丫
谦卑,对知识有一颗敬畏之心!
展开
-
KAFKA安装启动
下载地址下载kakfa解压,进入配置文件目录,我的是H:\kafka_2.13-3.0.0\config修改两个Zookeeper和kafka的配置文件,(我的版本已经内置Zookeeper)没有对应的路径则创建,指向即可。同理,进入H:\kafka_2.13-3.0.0\bin\windows目录,cmd进入命令行启动zookeeper,zookeeper-server-start.bat ..\..\config\zookeeper.properties启动kafka,kaf原创 2021-12-18 16:18:06 · 2056 阅读 · 1 评论 -
zipkin安装及启动
建表语句(mysql)---- Copyright 2015-2019 The OpenZipkin Authors---- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except-- in compliance with the License. You may obtain a copy of the License at---- http://www.原创 2021-12-18 11:14:03 · 1082 阅读 · 0 评论 -
getway网关路由配置的两种方式
yml server: port: 9527spring: application: name: cloud-gateway cloud: gateway: discovery: locator: enabled: true #开启注册中心路由功能 # lower-case-service-id: true routes: - id: payment_routh..原创 2020-07-05 15:03:05 · 4908 阅读 · 1 评论 -
Consul运行
cmd通过Consul --version可以查看版本consul agent -dev 启动consulhttp://localhost:8500 访问consul首页附上:链接:https://pan.baidu.com/s/1MNAhRFGKz2luRzb9-syYoQ提取码:ztst原创 2020-07-01 11:29:30 · 471 阅读 · 0 评论 -
springcloud+Zookeeper测试
pom<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/x原创 2020-06-30 21:03:08 · 217 阅读 · 0 评论 -
springcloud通过yml配置文件配置Mysql等相关配置
server: port: 8001 mybatis: config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径 type-aliases-package: com.atguigu.springcloud.entities # 所有Entity别名类所在包 mapper-lo...原创 2019-10-11 23:19:15 · 1950 阅读 · 1 评论 -
Spring cloud将微服务provider侧注册进eureka
<!-- 将微服务provider侧注册进eureka --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> ...原创 2019-10-12 20:34:08 · 148 阅读 · 0 评论 -
Spring Cloud -Eureka-server服务端
<!--eureka-server服务端 --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka-server</artifactId> <...原创 2019-10-12 20:36:53 · 74 阅读 · 0 评论 -
Spring Cloud-Eureka服务注册中心yml配置
server: port: 3000 #端口 eureka: instance: hostname: localhost #eureka服务端的实例名称 client: register-with-eureka: false #false表示不向注册中心注册自己。 fetch-registry: false #false表示自己端就是注册中心,我的职...原创 2019-10-12 20:38:38 · 3666 阅读 · 0 评论 -
Spring Cloud-客户端注册进Eureka服务列表内
eureka: client: #客户端注册进eureka服务列表内 service-url: defaultZone: http://localhost:7001/eureka原创 2019-10-12 20:40:31 · 134 阅读 · 0 评论 -
Spring Cloud-集群配置的eureka
基本原理上图是来自eureka的官方架构图,这是基于集群配置的eureka;- 处于不同节点的eureka通过Replicate进行数据同步- Application Service为服务提供者- Application Client为服务消费者- Make Remote Call完成一次服务调用服务启动后向Eureka注册,Eureka Server会将注册信息向其他E...原创 2019-10-12 23:08:43 · 86 阅读 · 0 评论