使用Springboot创建项目,所有服务注入到注册中心,相互调用使用feign,这样就能搭建一个简单的微服务架构 Feign(用来完成微服务之间的远程调用):在客户端完成工作 步骤:超时设置:根据业务时间设置,默认为1s超时在rml配置文件中设置ribbon超时时间: ribbon: Conner Read More
posted @ 2021-05-24 15:18
Li_ll
Views(61)
Comments(0)
Diggs(0)
zookeeper注册中心,dubbo远程注入 组件的作用 什么是微服务?答:将大一统的项目拆分成每个耦合性强可以独立测试的独立模块,比如用户管理服务,用户鉴权服务等,拆分后每一个都对应自己的数据库. Springcloud将一系列框架整合到一起,形成了一个一系列框架的有序集合,用Springboo Read More
posted @ 2021-05-24 15:17
Li_ll
Views(43)
Comments(0)
Diggs(0)
启动流程默认扫描包(Springboot常问的问题) 1.编写配置类2.如何加载配置类Springboot自动配置: springboot使用java配置类,完成了整合其他框架(1.编写配置类,放在了autoconfigure jar包中,在工程中引入(只要是Springboot工程,都会自动引入) Read More
posted @ 2021-05-24 15:16
Li_ll
Views(58)
Comments(0)
Diggs(0)
Springboot如何整合的所有框架? 项目的搭建?搭建maven项目,引用Springboot依赖(Springboot工程需要继承父工程,web开发的起步依赖导入),定义controller,编写引导类(Springboot项目入口),启动测试快速构建(要有网):模块选择springIniti Read More
posted @ 2021-05-24 15:14
Li_ll
Views(52)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号