【Spring Cloud Alibaba】开篇

Spring Cloud Alibaba

  • 一、简介
    • 1.1 官方描述
    • 1.2 架构图
    • 1.3 模块
  • 二、项目搭建
    • 2.1 maven
    • 2.2 创建基础模块及基础功能
      • 2.2.1 创建子模块
      • 2.2.2 基础项目代码准备

一、简介

1.1 官方描述

Spring Cloud Alibaba provides a one-stop solution for distributed application development. It contains all the components required to develop distributed applications, making it easy for you to develop your applications using Spring Cloud.
With Spring Cloud Alibaba, you only need to add some annotations and a small amount of configurations to connect Spring Cloud applications to the distributed solutions of Alibaba, and build a distributed application system with Alibaba middleware.

1.2 架构图

【Spring Cloud Alibaba】开篇_第1张图片

图片来源:processon

1.3 模块

【Spring Cloud Alibaba】开篇_第2张图片

二、项目搭建

2.1 maven

创建maven项目,配置pom


<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0modelVersion>
    <parent>
        <groupId>org.springframework.bootgroupId>
        <artifactId>spring-boot-starter-parentartifactId>
        <version>2.4.2version>
    parent>
    <groupId>cn.flowboot.e.commercegroupId>
    <artifactId>E-commerce-cloudartifactId>
    <version>1.0-SNAPSHOTversion>
    <packaging>pompackaging>

    <properties>
        
        <E-commerce-cloud>1.0-SNAPSHOTE-commerce-cloud>
        
        <spring.cloud.version>Hoxton.SR12spring.cloud.version>
        
        <spring.cloud.alibaba.version>2.2.7.RELEASEspring.cloud.alibaba.version>
        
        <lombok.version>1.16.18lombok.version>
        
        <commons-lang3.version>3.11commons-lang3.version>
        
        <commons-collections4.version>4.4commons-collections4.version>
        
        <hutool-all.version>5.6.0hutool-all.version>
        
        <jwt.version>0.11.2jwt.version>
        
        <fastjson.version>1.2.78fastjson.version>
        
        <mybatis-plus.version>3.4.2mybatis-plus.version>
        
        <druid.version>1.2.6druid.version>
        
        <bitwalker.version>1.21bitwalker.version>
        
        <swagger.version>3.0.0swagger.version>
        
        <kaptcha.version>2.3.2kaptcha.version>
        
        <mybatis-spring-boot.version>2.1.4mybatis-spring-boot.version>
        
        <pagehelper.boot.version>1.3.1pagehelper.boot.version>
        
        <oshi.version>5.8.0oshi.version>
        
        <jna.version>5.8.0jna.version>
        
        <commons.io.version>2.11.0commons.io.version>
        
        <commons.fileupload.version>1.4commons.fileupload.version>
        
        <commons.collections.version>3.2.2commons.collections.version>
        
        <poi.version>4.1.2poi.version>
        
        <velocity.version>1.7velocity.version>

    properties>


    
    <dependencyManagement>
        <dependencies>
            
            <dependency>
                <groupId>org.springframework.cloudgroupId>
                <artifactId>spring-cloud-dependenciesartifactId>
                <version>${spring-cloud.version}version>
                <type>pomtype>
                <scope>importscope>
            dependency>

            
            <dependency>
                <groupId>com.alibaba.cloudgroupId>
                <artifactId>spring-cloud-alibaba-dependenciesartifactId>
                <version>${spring-cloud-alibaba.version}version>
                <type>pomtype>
                <scope>importscope>
            dependency>

            
            <dependency>
                <groupId>org.projectlombokgroupId>
                <artifactId>lombokartifactId>
                <version>${lombok.version}version>
            dependency>
            

你可能感兴趣的:(Spring,Cloud,spring,cloud,java,微服务)