摘要: 1、Ribben 负载均衡 1.导包 <!--客户端负载均衡实现 ribbon--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-ribbon</artifact 阅读全文
posted @ 2019-08-25 15:55 涂小二 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: 5.1注册中心集群 1.复制注册中心项目 2.修改yml配置文件 注册中心1中引入注册中心2的url地址 2.1 server1的application.yml配置 server: port: 7000 #注册中心的配置 eureka: instance: hostname: peer1 clien 阅读全文
posted @ 2019-08-25 15:46 涂小二 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 一、注册中心(EurakeServer) 如何实现 3.3.1 创建项目 父模块和子模块 3.3.2 导包 3.3.2.1 父模块 <!--限定springBoot和springCloud的版本--> <properties> <project.build.sourceEncoding> UTF-8 阅读全文
posted @ 2019-08-25 15:17 涂小二 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 一、springBoot的作用 简化spring框架的搭建;springboot有自己特定的配置方式 二、springboot继承web(jsp) 1.导包 父模块 <parent> <groupId>org.springframework.boot</groupId> <artifactId>sp 阅读全文
posted @ 2019-08-25 14:46 涂小二 阅读(185) 评论(0) 推荐(0) 编辑