上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
  2022年6月23日
摘要: 四:Ribbon 负载均衡 分布式高并发 Spring Cloud 提供的一种负载均衡的解决方案,Ribbon 是Netfix发布的负载均衡器,springcloud Ribbon 的使用同样要结合Eureka Server 负载均衡算法:轮询、随机、加权轮询、加权随机 1.创建模块,配置环境 <? 阅读全文
posted @ 2022-06-23 23:14 Steam残酷 阅读(33) 评论(0) 推荐(0)
摘要: 五:Fiegn 声明式接口调用 什么是Fiegn Netfix,Fiegn 是一个提供模板式的Web Service客户端,使用Fiegn 可以简化Web Service 客户端的编写,开发者可以通过简单的接口和注解来调用HTTP API Spring Cloud Fiegn :可插拔、基于注解、负 阅读全文
posted @ 2022-06-23 23:14 Steam残酷 阅读(112) 评论(0) 推荐(0)
摘要: 服务网关 API网关可以对所有的API请求进行统一的管理和维护,相当于为系统开放出一个统一的接口,所有的外部的请求只需要统一的访问这个外部接口即可,系统内部再通过API网关映射不同的微服务。 对于开发者就不需要关注具体的微服务URL,直接访问网关即可 三:Spring Cloud Zuul 1.创建 阅读全文
posted @ 2022-06-23 23:11 Steam残酷 阅读(33) 评论(0) 推荐(0)
摘要: 二:RestTemplate 通过RestTemplate可以实现不同微服务之间的调用 RestTemplate是spring框架提供的一种基于RESTful的服务组件,底层对HTTP请求及其相应进行了封装,提供了很多的远程访问REST服务的方式,可以简化代码的开发 如何使用RestTemplate 阅读全文
posted @ 2022-06-23 23:10 Steam残酷 阅读(137) 评论(0) 推荐(0)
摘要: 什么是Eureka组件 spring cloud Eureka ,提供服务注册和服务发现的功能。 一:spring cloud Eureka Eureka Server 服务端 Eureka Client 客户端 服务注册 代码实现: 1.pom.xml <?xml version="1.0" en 阅读全文
posted @ 2022-06-23 23:08 Steam残酷 阅读(81) 评论(0) 推荐(0)
摘要: 六Spring Cloud 回顾之前的: javaSE 数据库 前端 Servlet HTTP Mybatis Spring SpringMVC SpringBoot Dubbo、Zookeeper、分布式基础 Maven、Git Ajax、json 微服务产生的背景 单体架构 单体业务的问题: 随 阅读全文
posted @ 2022-06-23 23:07 Steam残酷 阅读(90) 评论(0) 推荐(0)
摘要: Spring Boot 整合Spring Seccurity 1.创建maven工程 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/ 阅读全文
posted @ 2022-06-23 23:05 Steam残酷 阅读(543) 评论(0) 推荐(0)
摘要: Springboot Mybatis <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche 阅读全文
posted @ 2022-06-23 23:04 Steam残酷 阅读(90) 评论(0) 推荐(0)
摘要: Thymeleaf的对象 Thymeleaf是直接支持访问Servlet web的原生资源,HttpServletRequest HttpServletResponse HttpSession ServletContext. #request:获取HttpServletRequest对象 #resp 阅读全文
posted @ 2022-06-23 23:02 Steam残酷 阅读(250) 评论(0) 推荐(0)
摘要: springboot 整合Thymeleaf Thymeleaf是目前流行的视图层的技术,Spring boot 官方推荐的使用Thymeleaf 什么是Thymeleaf? Thymeleaf是一个支持原生的THML文件的java末班,可以实现前后端的分离的交互方式,即视图与业务的数据分开响应,他 阅读全文
posted @ 2022-06-23 23:00 Steam残酷 阅读(223) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页