SpringCloud-基础概念及整体架构

2023-10-30

基础概念

01、微服务架构

微服务架构师一种架构模式,它提倡将单一应用程序划分成一组小的服务,服务之间互相协调、互相配合,为用户提供最终价值。每个服务运行在其独立的进程中,服务与服务间采用轻量级的通信机制互相协作(通常是基于HTTP协议的Restful API)。 每个服务都围绕着具体业务进行构建,并且能够被独立的部署到生产环境、类生产环境等。另外,应当尽量避免统一的、集中式的服务管理机制,对具体一个服务而言,应根据业务上下文,选择合适的语言、工具对其进行构建。

02、SpringCloud

SpringCloud=分布式微服务架构的一站式解决方案,是多种微服务架构落地技术的集合体,速成微服务全家桶


在这里插入图片描述

03、SpringCloud 技术栈

在这里插入图片描述

具体实现用到的技术
在这里插入图片描述

04、boot和cloud的版本选型

Spring Cloud采用了英国伦敦地铁站的名称来命名,并由地铁站名称字母A-Z依次类推的形式来发布迭代版本
SpringCloud是一个由许多子项目组成的综合项目,各子项目有不同的发布节奏。为了管理SpringCloud与各子项目的版本依赖关系,发布了一个清单,其中包括了某个SpringCloud版本对应的子项目版本。为了避免SpringCloud版本号与子项目版本号混淆,SpringCloud版本采用了名称而非版本号的命名,这些版本的名字采用了伦敦地铁站的名字,根据字母表的顺序来对应版本时间顺序。例如Angel是第一个版本, Brixton是第二个版本。当SpringCloud的发布内容积累到临界点或者一个重大BUG被解决后,会发布一个“service releases"版本,简称SRX版本,比如Greenwich.SR2就是SpringCloud发布的Greenwich版本的第2个SRX版本。

cloud Hoxton.SR1

boot 2.2.2.RELEASE

cloud alibaba 2.1.0.RELEASE

java java8

Maven 3.5及以上

Mysql 5.7及以上

05、cloud 组件停更说明

停更不停用

  • 被动修复bugs
  • 不再接受合并请求
  • 不再发布新版本

cloud升级

  • 服务注册中心

    • Eureka停用
    • 可以使用zookeeper作为服务注册中心
    • consul
    • Nacos
  • 服务调用

    • Ribbon准备停更,
    • 代替为LoadBalance
  • 服务调用2

    • Feign改为OpenFeign
  • 服务降级

    • Hystrix停更,改为resilence4j

    • 或者阿里巴巴的Sentienl

  • 服务网关

    • Zuul改为gateway
  • 服务配置

    • Config改为 Nacos
  • 服务总线

    • Bus改为Nacos

在这里插入图片描述

环境搭建

  1. New Project
  2. 聚合总父工程名字
  3. Maven选版本
  4. 工程名字
  5. 字符编码
  6. 注解生效激活
  7. java 编码版本选8
  8. File Type 过滤

01、新建maven父工程

在pom文件里添加

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <junit.version>4.12</junit.version>
        <log4j.version>1.2.17</log4j.version>
        <lombok.version>1.16.18</lombok.version>
        <mysql.version>5.1.47</mysql.version>
        <druid.version>1.1.16</druid.version>
        <mybatis.spring.boot.version>1.3.0</mybatis.spring.boot.version>
    </properties>

    <!-- 1、只是声明依赖,并不实际引入,子项目按需声明使用的依赖 -->
    <!-- 2、子项目可以继承父项目的 version 和 scope -->
    <!-- 3、子项目若指定了 version 和 scope,以子项目为准 -->
    <dependencyManagement>
        <dependencies>
            <!--spring boot 2.2.2-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>2.2.2.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!--spring cloud Hoxton.SR1-->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Hoxton.SR1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!--spring cloud alibaba 2.1.0.RELEASE-->
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>2.1.0.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>${mysql.version}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
                <version>${druid.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mybatis.spring.boot</groupId>
                <artifactId>mybatis-spring-boot-starter</artifactId>
                <version>${mybatis.spring.boot.version}</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>${log4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok</artifactId>
                <version>${lombok.version}</version>
                <optional>true</optional>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                    <addResources>true</addResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

dependencyManagement

Maven 使用dependencyManagement元素来提供了一种管理依赖版本号的方式。

通常会在一个组织或者项目的最顶层的父pom中看到。

使用pom.xml 中的dependencyManagement元素能让所有在子项目中引用一个依赖而不用显式的列出版本号。

Maven 会沿着父子层次向上走,直到找到一个拥有dependencyManagement元素的项目,然后它就会使用这个dependencyManagement元素中指定的版本号。

这样做的好处就是:如果有多个子项目都引用同一样依赖,则可以避免在每个使用的子项目里都声明一个版本号,这样当想升级或切换到另一个版本时,只需要在

顶层父容器里更新,而不需要一个一个子项目的修改﹔另外如果某个子项目需要另外的一个版本,只需要声明version就可。

dependencyManagement里只是声明依赖,并不实现引入,因此子项目需要显示的声明需要用的依赖。

02、创建子模块

在这里插入图片描述

1、子模块名字

cloud_provider_payment8001

2、pom依赖

 <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
            <version>1.1.10</version>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
    </dependencies>

3、创建application.yml

server:
  port: 8001
spring:
  application:
    name: cloud-payment-service
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource                            #当前数据源操作类型
    driver-class-name: com.mysql.jdbc.Driver                            #mysql驱动
    url: jdbc:mysql://localhost:3306/db2022?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
    username: root
    password: mysql729
mybatis:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.example.springcloud.pojo                # 所有的entity(pojo)别名类所在包

4、主启动类

@SpringBootApplication
public class PaymentMain8001 {
    public static void main(String[] args) {
        SpringApplication.run(PaymentMain8001.class, args);
    }
}

5、业务类

1、sql
CREATE TABLE `payment`
(
    `id`     bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `serial` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '支付流水号',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '支付表' ROW_FORMAT = Dynamic;

INSERT INTO `payment`
VALUES (31, '尚硅谷111');
INSERT INTO `payment`
VALUES (32, 'atguigu002');
INSERT INTO `payment`
VALUES (34, 'atguigu002');
INSERT INTO `payment`
VALUES (35, 'atguigu002');
2、实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Payment implements Serializable {
    private Long id;
    private String serial;
}
3、通用返回类
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T>{
    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
4、dao层
@Mapper
public interface PaymentDao {
    /**
     * 插入操作
     * @param payment  实体
     * @return 受影响的行数
     */
    int create(Payment payment);

    /**
     * 通过id查订单
     * @param id  订单id
     * @return  订单
     */
    Payment getPaymentById(@Param("id") Long id);
}
5、mapper 配置文件类

在resource下,创建mapper/PaymentMapper.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.example.springcloud.dao.PaymentDao">
    <resultMap id="BaseResultMap" type="com.example.springcloud.pojo.Payment">
        <id column="id" property="id" jdbcType="BIGINT"/>
        <id column="serial" property="serial" jdbcType="VARCHAR"/>
    </resultMap>

    <insert id="create" parameterType="Payment" useGeneratedKeys="true" keyProperty="id">
        insert into payment(serial) values (#{serial})
    </insert>

    <select id="getPaymentById" parameterType="Long" resultMap="BaseResultMap">
        select * from payment where id = #{id}
    </select>

</mapper>
6、写service和serviceImpl

service

public interface PaymentService {
    /**
     * 插入操作
     * @param payment  实体
     * @return 受影响的行数
     */
    int create(Payment payment);

    /**
     * 通过id查订单
     * @param id  订单id
     * @return  订单
     */
    Payment getPaymentById(@Param("id") Long id);
}

serviceImpl

@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
7、controller
@Slf4j
@RestController
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RequestMapping("/payment")
public class PaymentController {
    private final PaymentService paymentService;

    @PostMapping("/create")
    public CommonResult create(Payment payment){
        int result = paymentService.create(payment);
        log.info("****插入结果*****:"+result);
        if(result > 0){
            return new CommonResult(200,"插入数据库成功",result);
        }
        return new CommonResult(444,"插入数据库失败",result);
    }
    
    @PostMapping("/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id){
        Payment payment = paymentService.getPaymentById(id);
        log.info("****查询结果*****:"+payment);
        if(payment != null){
            return new CommonResult(200,"查询成功",payment);
        }
        return new CommonResult(444,"没有对应的记录,查询id"+id);
    }
    
}

03、热部署

1.Adding devtools to your project

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>

2.Adding plugin to your pom.xml

父类总工程

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                    <addResources>true</addResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

3.Enabling automatic build

在这里插入图片描述

4.Updae the value of

在settings里将此勾选
在这里插入图片描述

按ctrl+shift+alt+/ 选择register

将此勾选

在这里插入图片描述

5.重启idea

04、order模块

1.pom

<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

2.yml配置文件

server:
  port: 80

3.主启动类

@SpringBootApplication
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class,args);
    }
}

4.复制paymant模块的实体类(pojo)

5.写controller层

因为这里是消费者类,主要是消费,那么就没有service和dao,需要调用pay模块的方法

并且这里还没有微服务的远程调用,那么如果要调用另外一个模块,则需要使用基本的api调用

使用RestTemplate调用pay模块

RestTemplate提供了多种便捷访问远程Http服务的方法,是一种简单便捷的访问restful服务模板类,是Spring提供的用于访问Rest服务的客户端模板工具集

使用:

使用restTemplate访问restful接口非常的简单粗暴无脑。(url, requestMap, ResponseBean.class)这三个参数分别代表REST请求地址、请求参数、HTTP响应转成

被转换成的对象类型。

@Slf4j
@RestController
public class OrderController {
    public static final String PAYMENT_URL = "http://localhost:8001";

    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/consumer/payment/create")
    public CommonResult<Payment> create(Payment payment){
        return restTemplate.postForObject(PAYMENT_URL+"/payment/create",payment, CommonResult.class);
    }

    @GetMapping("/consumer/payment/get/{id}")
    public CommonResult<Payment> getPayment(@PathVariable("id") Long id){
        return restTemplate.getForObject(PAYMENT_URL+"/payment/get/"+id, CommonResult.class);
    }

}

05、重构

新建一个模块,将重复的代码抽取到一个公共的模块中

1.创建commons模块

2.抽取公共的pom

 <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.7.22</version>
        </dependency>
    </dependencies>

3.pojo类放入到commons中

在这里插入图片描述

4.使用maven,将commons打包(install)

其他模块删除pojo,引入commons

        <dependency>
            <groupId>org.example</groupId>
            <artifactId>cloud-api-commons</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>

Spring Cloud组件总结

组件 简介 分类 官网 笔记 备注
Eureka Eureka is the Netflix Service Discovery Server and Client. 服务注册中心 link link eureka中文解释:int.(因找到某物,尤指问题的答案而高兴)我发现了,我找到了
Zookeeper ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. 服务注册中心 link link zookeeper中文解释:n.动物园管理员
Consul Consul is a service mesh solution providing a full featured control plane with service discovery, configuration, and segmentation functionality. 服务注册中心 link link consul中文解释:n.领事
Ribbon Ribbon is a client-side load balancer that gives you a lot of control over the behavior of HTTP and TCP clients. 服务调用 link link ribbon中文解释:n.(用于捆绑或装饰的)带子;丝带;带状物;
OpenFeign Feign is a declarative web service client. It makes writing web service clients easier. 服务调用 link link feign中文意思:v.假装,装作,佯装(有某种感觉或生病、疲倦等)
Hystrix Netflix has created a library called Hystrix that implements the circuit breaker pattern. 服务降级 link link hystrix中文意思:n.豪猪属;猬草属;豪猪;豪猪亚属
GateWay Spring Cloud Gateway aims to provide a simple, yet effective way to route to APIs and provide cross cutting concerns to them such as: security, monitoring/metrics, and resiliency. 服务网关 link link gateway中文意思:n.网关;途径;门道;手段
Config Spring Cloud Config provides server-side and client-side support for externalized configuration in a distributed system. 服务配置 link link -
Bus Spring Cloud Bus links nodes of a distributed system with a lightweight message broker. 服务总线 link link -
Stream Spring Cloud Stream is a framework for building message-driven microservice applications. 消息队列 link link -
Sleuth Spring Cloud Sleuth implements a distributed tracing solution for Spring Cloud. 服务跟踪 link link sleuth中文意思:n.侦探
Nacos Nacos致力于帮助您发现、配置和管理微服务。 服务注册中心、服务配置、服务总线 link link NAme + COnfiguration + Service
Sentinel Sentinel是面向分布式服务架构的流量控制组件,主要以流量为切入点,从流量控制、熔断降级、系统自适应保护等多个维度来帮助您保障微服务的稳定性。 服务降级 link link sentinel中文意思:n.哨兵
Seata Seata 是一款开源的分布式事务解决方案,致力于在微服务架构下提供高性能和简单易用的分布式事务服务。 分布式事务 link link -
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

SpringCloud-基础概念及整体架构 的相关文章

随机推荐

  • day08 字符串

    LeetCode 344 翻转字符串 注 此处是 left lt right 因为当left 和 right处于同一位置时 无需进行原地翻转 package algor trainingcamp author lizhe version 1
  • SEAndroid学习

    概要 SEAndroid 基于SELinux实现 SELinux 的目标就是实现对Linux 系统上的操作做精细化安全管理 为了达到精细化安全管理无非就限制一些主体访问对某些资源执行某些操作 在SEAndroid里面主体一般是进程 客体一般
  • Flutter 之 Stepper

    Flutter 之 Stepper Stepper 组件在移动端应用中经常被使用 它可以让用户通过一系列步骤来完成一个复杂的操作 Flutter 中的 Stepper 组件提供了一个简单的方式来实现这个功能 如何使用 Stepper 组件
  • 进程管理(四):详解死锁

    0 死锁 死锁 当若干个进程竞争系统资源或相互通信而处于永久阻塞状态时 若无外力作用 这些进程都将无法正常向前推进 这些进程中的每一个进程均无限地等待此组进程中的某个其他进程占有的 自己永远无法得到的资源 这种现象即为死锁 举例 某系统中只
  • GitHub高效搜索技巧

    文章目录 一 搜索技巧 1 排序搜索结果 按交互排序 按反应排序 按作者日期排序 按提交者日期排序 按更新日期排序 2 搜索范围 2 1 搜素存储库 按存储库名称 描述或 README 文件的内容搜索 在用户或组织的仓库中搜索 按存储库大小
  • 软件开发外包平台有哪些?收集的一些备用

    软件开发外包平台有哪些 作为开发者收集的一些备用 方便一些开发者业余接点外包业务 严格来说一般软件开发外包平台属于软件协同产业供应链平台 但是有些软件外包平台有一个部分是和软件外包相似的 就是软件行业的服务商可以入驻平台成为产品经理 然后进
  • android从内部存储写入、安装apk提示解析包错误,或者提示Permission Denied,文件不可用解决办法...

    做应用商店 下载apk 考虑一种情况 如果没有sd卡的情况下就将apk下载到 Internal Cache目录下 下载都正常 但是在安装的时候提示Permission Denied data data mypackage apps app
  • android手表怎样刷机,碉堡了!智能手表也能一键刷机

    5月18日 刷机精灵发布了最新版本V3 27 下载地址 宣布独家支持LG 智能手表G Watch R一键刷机 可刷入百度DuWear和官方ROM 而此前刷机精灵已成功支持三星V700 土曼智能手表一键刷机 后续也将扩展到Moto360等更多
  • 如何在Keras中训练大型数据集

    https www toutiao com a6670173759829180936 在本文中 我们将讨论如何使用Keras在不适合内存的大数据集上训练我们的深度学习网络 介绍 深度学习算法优于所有其他算法 能够在大多数问题上产生最先进的结
  • Ubuntu Android Studio快捷方式创建

    Ubuntu Android Studio快捷方式创建 环境需求 1 Ubuntu 系统 2 JDK已安装 3 Android Studio已安装 一 创建 编辑Studio desktop文件 1 1 在根目录下执行以下命令 sudo v
  • SpringCloud第一版知识点梳理

    本次文章目录结构如下 1 初识Spring Cloud 1 1 目标 1 2 讲解 1 2 1 技术架构演变 1 2 2 SpringCloud简介 1 3 小结 2 微服务调用 2 1 目标 2 2 讲解 2 2 1 RPC和HTTP 2
  • C++之把流对象当做函数参数传递

    一 编译不通过的代码 File Name main cpp Author zjw Email zjw 0722 163 com Create Time 2015年04月09日 星期四 17时36分02秒 include
  • PyCharm:ModuleNotFoundError: No module named 'selenium'

    今天搭了下selenium环境 遇到了不少坑 幸好爬出来了 火狐63 03 32位 selenium 3 141 0 python 3 7 1 首先介绍下selenium的安装 忘记截图 就文字描述了 1 命令行输入 pip install
  • UE4 场景中的物体高亮显示

    本片博文介绍怎么是场景中的物体进行高亮显示 这里首先要创建一种材质 材质创建如下图所示 大体方法是复制你想高亮的那个物体 然后材质用自己新建的材质 然后把自己创建的物体和原来的物体重合就可以做出物体高亮的效果 感觉这个比用后期盒子处理的要简
  • 神策数据微信小程序 SDK 架构解析

    一 前言 神策数据微信小程序 SDK 1 是一款轻量级用于微信小程序端的数据采集埋点 SDK 包含代码埋点 全埋点功能 其中 全埋点功能通过代理微信小程序原生 App Page Component 接口及相应生命周期函数来实现 下面将以 S
  • selenium webdriver安装和版本不匹配问题

    这篇文章主要是因为系统版本如 92 0 4515 159在webdriver中没有对应版本 chromedriver下载 https npm taobao org mirrors chromedriver 1 在chromedriver下载
  • AngularJs学习笔记--bootstrap

    AngularJs学习笔记系列第一篇 希望我可以坚持写下去 本文内容主要来自 AngularJS 文档的内容 但也加入些许自己的理解与尝试结果 一 总括 本文用于解释Angular初始化的过程 以及如何在你有需要的时候对Angular进行手
  • react+ts项目搭建

    create react app地址 https create react app bootcss com docs getting started npx create react app my app template typescri
  • 实时渲染学习(七)全局光照:光线追踪、路径追踪与GI技术进化编年史

    参考博文 Real Time Rendering 3rd 提炼总结 八 第九章 全局光照 光线追踪 路径追踪与GI技术进化编年史 前言 本章知识概览 全局光照的基本概念 全局光照的算法主要流派 全局光照技术进化编年史 光线追踪 Ray Tr
  • SpringCloud-基础概念及整体架构

    基础概念 01 微服务架构 微服务架构师一种架构模式 它提倡将单一应用程序划分成一组小的服务 服务之间互相协调 互相配合 为用户提供最终价值 每个服务运行在其独立的进程中 服务与服务间采用轻量级的通信机制互相协作 通常是基于HTTP协议的R