国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Springboot搭建微服務(wù)案例之Eureka注冊中心

這篇具有很好參考價(jià)值的文章主要介紹了Springboot搭建微服務(wù)案例之Eureka注冊中心。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

一、父工程依賴管理

<?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>org.mumu</groupId>
    <artifactId>eureka</artifactId>
    <packaging>pom</packaging>
    <version>1.0</version>
    <modules>
        <module>common</module>
        <module>consumer</module>
        <module>springcloud-service-provider</module>
    </modules>

    <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>
        <mysql.version>5.1.47</mysql.version>
        <lombok.version>1.16.18</lombok.version>
        <druid.version>1.1.16</druid.version>
        <mybatis.spring.boot.version>1.3.0</mybatis.spring.boot.version>
    </properties>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
                <version>2.2.1.RELEASE</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
                <version>2.2.1.RELEASE</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>2.2.2.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>${mysql.version}</version>
                <scope>runtime</scope>
            </dependency>
            <!--        <!- druid->-->
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid-spring-boot-starter</artifactId>
                <version>1.1.10</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>
        </dependencies>
    </dependencyManagement>

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

</project>

二、搭建公共模塊common

放一些pojo類

1. 依賴引入

<?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">
    <parent>
        <artifactId>eureka</artifactId>
        <groupId>org.mumu</groupId>
        <version>1.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>springcloud-service-common</artifactId>
    <version>1.0</version>
    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.30</version>
        </dependency>
    </dependencies>

</project>

2.實(shí)體類


@Data // 省略寫get set方法
@NoArgsConstructor //提供無參數(shù)的構(gòu)造函數(shù)
@AllArgsConstructor //提供帶所有參數(shù)的構(gòu)造函數(shù)
public class Payment implements Serializable {

    private long id;
    private String serial;
}

三、搭建服務(wù)提供方provider

1.依賴引入

<?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">
    <parent>
        <artifactId>eureka</artifactId>
        <groupId>org.mumu</groupId>
        <version>1.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>springcloud-service-provider</artifactId>
    <version>1.0</version>
    <groupId>org.mumu</groupId>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.mumu</groupId>
            <artifactId>springcloud-service-common</artifactId>
            <version>1.0</version>
        </dependency>
        <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>
        </dependency>
        <!--mysql-connector-java-->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
        <!--jdbc-->
        <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>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!--eureka-client-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
        </dependency>
    </dependencies>

</project>

2.配置類

server:
  port: 8001 #配置服務(wù)端口號
spring:
  application:
    name: service-provider # 配置服務(wù)提供方的名稱
  datasource:  # 配置連接數(shù)據(jù)庫的基本信息
    driver-class-name: com.mysql.jdbc.Driver   # 驅(qū)動
    url: jdbc:mysql://localhost:3306/cloud2023  # 連接數(shù)據(jù)庫的url
    username: root   # 連接數(shù)據(jù)庫的用戶名
    password: 123456   # 連接數(shù)據(jù)庫的密碼
mybatis:
  config-location: classpath:/mybatis/sqlMapConfig.xml   # 引入mybatis的核心配置文件
  mapper-locations: classpath:/mybatis/mapper/*.xml  # 引入mybatis的映射文件
eureka:
  client:
    register-with-eureka: true # 允許將當(dāng)前服務(wù)注冊到eureka注冊中心
    fetch-registry: true # 允許當(dāng)前微服務(wù)拉取注冊中心中的服務(wù)信息
    service-url:
      defaultZone: http://localhost:7001/eureka/,http://localhost:7002/eureka/  # eureka注冊中心的地址

3.編寫啟動類

@SpringBootApplication
@MapperScan(basePackages = "com.xq.dao")
@EnableDiscoveryClient //開啟服務(wù)發(fā)現(xiàn)的功能
public class ProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class,args);
    }
}

4. 編寫業(yè)務(wù)邏輯

(1)整合mybatis

dao層

public interface PaymentDao {

    //根據(jù)id查詢payment信息
    public Payment findById(long id);

    //新增payment信息
    public void add(Payment payment);
}

創(chuàng)建dao接口的映射文件還有mybatis的核心配置文件

<?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="org.mumu.dao.PaymentDao">

    <!--根據(jù)id查詢payment信息-->
    <select id="findById" parameterType="long" resultType="payment">
        SELECT * FROM `payment` WHERE id = #{id}
    </select>

    <!--新增payment信息-->
    <insert id="add" parameterType="payment">
        INSERT INTO `payment`(`id`,`serial`) VALUES(#{id},#{serial})
    </insert>
</mapper>

配置 MyBatis 的類型別名,簡化 MyBatis 映射文件中的配置?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
    <!--取別名-->
    <typeAliases>
        <package name="org.mumu.pojo"></package>
    </typeAliases>
</configuration>

(2)Service

@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    PaymentDao paymentDao;

    @Override
    public Payment findById(long id) {
        return paymentDao.findById(id);
    }

    @Override
    public void add(Payment payment) {
        paymentDao.add(payment);
    }

    @Override
    public void save(Payment payment) {
        paymentDao.add(payment);
    }
}

5.定義控制器

@RestController
@RequestMapping("provider")
public class PaymentController {
    @Resource
    PaymentService paymentService;
    @Value("${server.port}")
    String port;

    @RequestMapping("findById")
    public Result<Payment> findById(@RequestParam("id") long id){
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Payment payment = paymentService.findById(id);
        return new Result<>(200,"數(shù)據(jù)查詢成功,當(dāng)前服務(wù)端口號是:" + this.port,payment);
    }
}

四、搭建服務(wù)消費(fèi)方consumer

1.依賴引入

<dependencies>
        <dependency>
            <groupId>org.mumu</groupId>
            <artifactId>springcloud-service-common</artifactId>
            <version>1.0</version>
        </dependency>
        <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>
        <!--eureka-client-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
        </dependency>
    </dependencies>

2.配置類

server:
  port: 80
spring:
  application:
    name: service-consumer
eureka:
  client:
    register-with-eureka: true # 允許將當(dāng)前服務(wù)注冊到eureka注冊中心
    fetch-registry: true # 允許當(dāng)前微服務(wù)拉取注冊中心中的服務(wù)信息
    service-url:
      defaultZone: http://localhost:7001/eureka/,http://localhost:7002/eureka/  # eureka注冊中心的地址

3.啟動類

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

4.注入RestTemplate組件到ioc容器

使用 RestTemplate 這個(gè) Java 客戶端組件來實(shí)現(xiàn)服務(wù)的遠(yuǎn)程調(diào)用。所以我們需要將
RestTemplate 使用 Java 配置類進(jìn)行注入:
@Configuration
public class MyConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}

5.定義控制器

@RestController
@RequestMapping("consumer")
@Slf4j
public class PaymentController {

   @Resource
   RestTemplate restTemplate;


    @RequestMapping("findById/{id}")
    public Result<Payment> findById(@PathVariable("id") long id){
        String url = "http://localhost:8001/provider/findById?id=" + id; //維護(hù)服務(wù)提供方的ip+端口
        Result result = restTemplate.getForObject(url, Result.class);
        return result;
    }
}

五、搭建服務(wù)注冊中心

1.引入依賴server

    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>4.0.1</version> <!-- 使用與Tomcat 9.0.29 兼容的版本 -->
        </dependency>
        <!--eureka服務(wù)端依賴-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
        </dependency>

        <!--web啟動器-->
        <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>
    </dependencies>

2.配置類

這里不需要要進(jìn)行服務(wù)注冊,因?yàn)檫@個(gè)模塊的server模塊

負(fù)責(zé)對其他Client進(jìn)行服務(wù)注冊

server:
  port: 7001
# 配置eureka服務(wù)端
eureka:
  client:
    register-with-eureka: false  # 禁止自己注冊自己
    fetch-registry: false  # 禁止抓取注冊中心中的服務(wù)信息
    service-url:
      defaultZone: http://localhost:7001/eureka/  # eureka服務(wù)端的地址

3.啟動類

@SpringBootApplication
@EnableEurekaServer // 標(biāo)識當(dāng)前服務(wù)是Eurkea服務(wù)端
public class EurekaServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(EurekaServerApplication.class,args);
    }
}

六、啟動

訪問地址:http://localhost:7001

Springboot搭建微服務(wù)案例之Eureka注冊中心,微服務(wù),spring boot,微服務(wù),eureka文章來源地址http://www.zghlxwxcb.cn/news/detail-743254.html

到了這里,關(guān)于Springboot搭建微服務(wù)案例之Eureka注冊中心的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Spring Cloud Eureka Service Registry 服務(wù)注冊中心實(shí)踐

    作者:禪與計(jì)算機(jī)程序設(shè)計(jì)藝術(shù) 在分布式微服務(wù)架構(gòu)下,服務(wù)發(fā)現(xiàn)是保證應(yīng)用可用的關(guān)鍵組件之一。在Spring Cloud體系中,服務(wù)發(fā)現(xiàn)中心通過Netflix Eureka實(shí)現(xiàn)。 本文將介紹Spring Cloud Eureka服務(wù)注冊中心的機(jī)制、配置及使用方法,并通過實(shí)例對Eureka的功能及其局限性進(jìn)行詳細(xì)闡述

    2024年02月11日
    瀏覽(228)
  • 一、開發(fā)環(huán)境window10微服務(wù)注冊中心搭建—Eureka

    一、開發(fā)環(huán)境window10微服務(wù)注冊中心搭建—Eureka

    簡述: Eureka 是天生集群的,搭建配置相當(dāng)簡單:不論你有多少的機(jī)器部署,只要相互之間指定對方的 注冊中心 地址就可以了 ,而多個(gè) Eureka Server 之間是通過復(fù)制的方式完成注冊服務(wù)的同步,遵循AP原則。 優(yōu)點(diǎn): 從設(shè)計(jì)角度來看,Eureka可以說是無懈可擊,注冊中心、提供者

    2024年02月05日
    瀏覽(24)
  • 特別詳細(xì)的Spring Cloud 系列教程1:服務(wù)注冊中心Eureka的啟動

    特別詳細(xì)的Spring Cloud 系列教程1:服務(wù)注冊中心Eureka的啟動

    Eureka已經(jīng)被Spring Cloud繼承在其子項(xiàng)目spring-cloud-netflix中,搭建Eureka Server的方式還是非常簡單的。只需要通過一個(gè)獨(dú)立的maven工程即可搭建Eureka Server。? 我們引入spring cloud的依賴和eureka的依賴。 注意spring cloud和springboot的版本要對應(yīng),不然容易出現(xiàn)各種奇怪的錯(cuò)誤。 不知道spr

    2024年04月08日
    瀏覽(103)
  • 微服務(wù) - Spring Cloud - Eureka Server單機(jī)和集群搭建、單機(jī)服務(wù)注冊和集群服務(wù)注冊

    Eureka 服務(wù)管理 Eureka是Netflix開發(fā)的服務(wù)發(fā)現(xiàn)框架,本身是一個(gè)基于REST的服務(wù),主要用于定位運(yùn)行在AWS域中的中間層服務(wù),以達(dá)到負(fù)載均衡和中間層服務(wù)故障轉(zhuǎn)移的目的。 SpringCloud將它集成在其子項(xiàng)目spring-cloud-netflix中,以實(shí)現(xiàn)SpringCloud的服務(wù)發(fā)現(xiàn)功能 Eureka服務(wù)注冊與發(fā)現(xiàn) Eu

    2024年02月13日
    瀏覽(93)
  • Spring Cloud Eureka 服務(wù)注冊和服務(wù)發(fā)現(xiàn)超詳細(xì)(附加--源碼實(shí)現(xiàn)案例--及實(shí)現(xiàn)邏輯圖)

    Spring Cloud Eureka 服務(wù)注冊和服務(wù)發(fā)現(xiàn)超詳細(xì)(附加--源碼實(shí)現(xiàn)案例--及實(shí)現(xiàn)邏輯圖)

    這篇文章先講述一下Eureka的應(yīng)用場景、代碼實(shí)現(xiàn)案例,多個(gè)服務(wù)模塊注冊到Euraka中,服務(wù)之間的調(diào)用實(shí)現(xiàn)我會再下一篇文章中進(jìn)行講解! Eureka主要是做: 注冊發(fā)現(xiàn)中心 服務(wù)注冊與發(fā)現(xiàn)的組件 說到Eureka不得不提到了CAP,那么什么是CAP原則呢,下面一起來看下! CAP 原則: 又稱

    2024年02月15日
    瀏覽(438)
  • 使用SpringCloud搭建Eureka注冊中心

    使用SpringCloud搭建Eureka注冊中心

    目錄 前言 一、搭建EurekaServer 1、在cloud-demo父工程下,創(chuàng)建子模塊 eureka-server。 ?2、引入eureka依賴 3、給eureka-server模塊編寫啟動類 4、編寫配置文件 5、啟動服務(wù) 二、服務(wù)注冊? 1、引入依賴 2、配置文件 3、啟動服務(wù) ?三、服務(wù)發(fā)現(xiàn) 1、引入依賴 3、服務(wù)拉取 總結(jié)? ? ? ? ? 在

    2024年02月04日
    瀏覽(16)
  • Spring Clould 注冊中心 - Eureka,Nacos

    Spring Clould 注冊中心 - Eureka,Nacos

    ?視頻地址:微服務(wù)(SpringCloud+RabbitMQ+Docker+Redis+搜索+分布式) ?微服務(wù)涉及的的知識 ?總結(jié): ?郵儲的物聯(lián)網(wǎng)項(xiàng)目實(shí)用的是apollo作為配置中心,nocos作為注冊中心,feign進(jìn)行服務(wù)間調(diào)用 ? SpringClould?與SpringBoot的版本兼容 ?clould-demo:demo 提取碼:cocf 實(shí)現(xiàn)RestTemple也可以通過ht

    2024年02月12日
    瀏覽(23)
  • Spring Cloud 之注冊中心 Eureka 精講

    Spring Cloud 之注冊中心 Eureka 精講

    ?? 簡介:java系列技術(shù)分享(??持續(xù)更新中…??) ?? 初衷:一起學(xué)習(xí)、一起進(jìn)步、堅(jiān)持不懈 ?? 如果文章內(nèi)容有誤與您的想法不一致,歡迎大家在評論區(qū)指正?? ?? 希望這篇文章對你有所幫助,歡迎點(diǎn)贊 ?? 收藏 ?留言 ?? ?? 更多文章請點(diǎn)擊 Spring Cloud 官網(wǎng):https://spring.io/proj

    2024年02月12日
    瀏覽(94)
  • 【微服務(wù)開篇-RestTemplate服務(wù)調(diào)用、Eureka注冊中心、Nacos注冊中心】

    【微服務(wù)開篇-RestTemplate服務(wù)調(diào)用、Eureka注冊中心、Nacos注冊中心】

    ?本篇用到的資料: https://gitee.com/Allengan/cloud-demo.git https://gitee.com/Allengan/cloud-demo.git 目錄 1.認(rèn)識微服務(wù) 1.1.單體架構(gòu) 1.2.分布式架構(gòu) 1.3.微服務(wù) 1.4.SpringCloud 1.5.總結(jié) 2.服務(wù)拆分和遠(yuǎn)程調(diào)用 2.1.服務(wù)拆分原則 2.2.服務(wù)拆分示例 2.2.1.導(dǎo)入Sql語句 2.2.2.導(dǎo)入demo工程 2.3.實(shí)現(xiàn)遠(yuǎn)程調(diào)用案例

    2024年02月08日
    瀏覽(26)
  • SpringCloud之Eureka注冊中心原理及其搭建

    SpringCloud之Eureka注冊中心原理及其搭建

    Eureka是Netflix開發(fā)的服務(wù)發(fā)現(xiàn)框架,本身是一個(gè)基于REST的服務(wù),主要用于定位運(yùn)行在AWS域中的中間層服務(wù),以達(dá)到負(fù)載均衡和中間層服務(wù)故障轉(zhuǎn)移的目的。SpringCloud將它集成在其子項(xiàng)目spring-cloud-netflix中,以實(shí)現(xiàn)SpringCloud的服務(wù)發(fā)現(xiàn)功能。 1、Eureka組件 Eureka包含兩個(gè)組件:Eure

    2024年02月03日
    瀏覽(23)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包