• 大小: 274KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: 其他
  • 标签: spring  

资源简介

本实战案例实现Eureka服务端、客户端的基本配置,以及配置Eureka高可用。 针对实际业务中进行实战演示,订单服务已知商品编码,通过Eureka调用商品服务从而获得商品信息等操作!

资源截图

代码片段和文件信息

package com.example.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
public class OrderApplication {

public static void main(String[] args) {
SpringApplication.run(OrderApplication.class args);
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-26 10:01  eureka\
     目录           0  2019-03-26 11:44  eureka\eureka-product\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\test-classes\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\test-classes\com\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\test-classes\com\example\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\test-classes\com\example\product\
     文件         637  2019-03-26 11:44  eureka\eureka-product\target\test-classes\com\example\product\ProductApplicationTests.class
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\generated-sources\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\generated-sources\annotations\
     目录           0  2019-03-26 13:45  eureka\eureka-product\target\classes\
     文件         447  2019-03-26 13:45  eureka\eureka-product\target\classes\application.yml
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\
     目录           0  2019-03-26 12:03  eureka\eureka-product\target\classes\com\example\product\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\mapper\
     文件        1010  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\mapper\ProductMapper.class
     文件        1163  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\mapper\ProductMapper$1.class
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\controller\
     文件        1061  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\controller\ProductController.class
     文件         786  2019-03-26 12:03  eureka\eureka-product\target\classes\com\example\product\ProductApplication.class
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\model\
     文件        3229  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\model\ProductModel.class
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\service\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\service\impl\
     文件         874  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\service\impl\ProductServiceImpl.class
     文件         226  2019-03-26 11:44  eureka\eureka-product\target\classes\com\example\product\service\ProductService.class
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\generated-test-sources\
     目录           0  2019-03-26 11:44  eureka\eureka-product\target\generated-test-sources\test-annotations\
     文件       15358  2019-03-26 09:37  eureka\eureka-product\eureka-product.iml
     文件        1913  2019-03-26 11:41  eureka\eureka-product\pom.xml
............此处省略535个文件信息

评论

共有 条评论