欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

淘宝开放平台实战Spring-Cloud

程序员文章站 2022-03-25 17:00:56
...

jdk 1.8
idea
虚拟机:装 redis rabbitMQ ES

1.创建 Maven项目
淘宝开放平台实战Spring-Cloud

淘宝开放平台实战Spring-Cloud
修改pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<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.0</modelVersion>

    <groupId>com.qianfeng</groupId>
    <artifactId>open-parent</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <modules>
        <module>openapi-eureka</module>
        <module>openapi-cache</module>
    </modules>

    <parent>
        <artifactId>spring-boot-starter-parent</artifactId>
        <groupId>org.springframework.boot</groupId>
        <version>2.2.8.RELEASE</version>
    </parent>
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Hoxton.SR6</version>
            <scope>import</scope>
            <type>pom</type>

        </dependency>
    </dependencies>
</dependencyManagement>

</project>

创建子工程:注册中心 eureka
淘宝开放平台实战Spring-Cloud

淘宝开放平台实战Spring-Cloud
淘宝开放平台实战Spring-Cloud