当前位置: 首页 > news >正文

校园网站建设说明书原画培训班一般学费多少

校园网站建设说明书,原画培训班一般学费多少,免费下载软件大厅,做男女的那个视频网站而Feign则会完全代理HTTP请求,我们只需要像调用方法一样调用它就可以完成服务请求及相关处理。Feign整合了Ribbon和Hystrix,可以让我们不再需要显式地使用这两个组件。 Feign具有如下特性: 支持可插拔的HTTP编码器和解码器; 支持Hystrix和…

而Feign则会完全代理HTTP请求,我们只需要像调用方法一样调用它就可以完成服务请求及相关处理。Feign整合了Ribbon和Hystrix,可以让我们不再需要显式地使用这两个组件。

Feign具有如下特性:

支持可插拔的HTTP编码器和解码器;

支持Hystrix和它的Fallback;

支持Ribbon的负载均衡;

支持HTTP请求和响应的压缩。

有点像我们springmvc模式的Controller层的RequestMapping映射。这Feign是用@FeignClient来映射服务的。

创建一个项目

<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-openfeign</artifactId><version>2.2.7.RELEASE</version></dependency><dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>4.0.1</version><scope>provided</scope></dependency><!--eureka-server--><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-server</artifactId><version>2.2.1.RELEASE</version></dependency><dependency><!-- 引入自己定义的api通用包,可以使用Payment支付Entity --><groupId>com</groupId><artifactId>cloud-api-commons</artifactId><version>0.0.1-SNAPSHOT</version></dependency>

总依赖:

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.2.2.RELEASE</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>com</groupId><artifactId>springcloud</artifactId><version>0.0.1-SNAPSHOT</version><name>cloud-consumer-feign-order80</name><description>cloud-consumer-feign-order80</description><properties><java.version>1.8</java.version></properties><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-openfeign</artifactId><version>2.2.7.RELEASE</version></dependency><dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>4.0.1</version><scope>provided</scope></dependency><!--eureka-server--><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-server</artifactId><version>2.2.1.RELEASE</version></dependency><dependency><!-- 引入自己定义的api通用包,可以使用Payment支付Entity --><groupId>com</groupId><artifactId>cloud-api-commons</artifactId><version>0.0.1-SNAPSHOT</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><scope>runtime</scope><optional>true</optional></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-configuration-processor</artifactId><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><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.1</version><configuration><source>1.8</source><target>1.8</target><encoding>UTF-8</encoding></configuration></plugin><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build></project>

application.yml

server:port: 80eureka:client:register-with-eureka: falseservice-url:defaultZone: http://localhost:7001/eureka,http://localhost:7002/eureka

运行项目,可以成功访问到。

先启动7001与7002,再启动8001,8002,最后再启动80.

OpenFign日志增强

FeignConfig

package com.springcloud.config;import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;/*** @auther zzyy* @create 2020-02-20 9:40*/
@Configuration
public class FeignConfig
{@BeanLogger.Level feignLoggerLevel(){return Logger.Level.FULL;}
}

server:port: 80eureka:client:register-with-eureka: falseservice-url:defaultZone: http://localhost:7001/eureka,http://localhost:7002/eurekalogging:level:# feign日志以什么级别监控哪个接口com.springcloud.service.PaymentService: debug

运行项目。

控制台:


文章转载自:
http://danielle.rwzc.cn
http://giddy.rwzc.cn
http://caramelization.rwzc.cn
http://tribasic.rwzc.cn
http://perseus.rwzc.cn
http://snowmobile.rwzc.cn
http://gumption.rwzc.cn
http://shamanize.rwzc.cn
http://lx.rwzc.cn
http://fourflusher.rwzc.cn
http://marshall.rwzc.cn
http://decertify.rwzc.cn
http://ossein.rwzc.cn
http://herbaceous.rwzc.cn
http://deprecate.rwzc.cn
http://cohabitant.rwzc.cn
http://irreal.rwzc.cn
http://drupelet.rwzc.cn
http://ignuts.rwzc.cn
http://mercurochrome.rwzc.cn
http://quarrying.rwzc.cn
http://hemicycle.rwzc.cn
http://purpoint.rwzc.cn
http://fave.rwzc.cn
http://trusty.rwzc.cn
http://snaggletoothed.rwzc.cn
http://ferrochromium.rwzc.cn
http://mangosteen.rwzc.cn
http://annabergite.rwzc.cn
http://cardiopulmonary.rwzc.cn
http://welsbach.rwzc.cn
http://surname.rwzc.cn
http://protectionist.rwzc.cn
http://oltp.rwzc.cn
http://panoplied.rwzc.cn
http://fleck.rwzc.cn
http://bravely.rwzc.cn
http://potestas.rwzc.cn
http://italianize.rwzc.cn
http://tastily.rwzc.cn
http://trivalvular.rwzc.cn
http://stabilitate.rwzc.cn
http://akebi.rwzc.cn
http://negotiatory.rwzc.cn
http://alkylate.rwzc.cn
http://derive.rwzc.cn
http://stratocumulus.rwzc.cn
http://stewed.rwzc.cn
http://interfascicular.rwzc.cn
http://footman.rwzc.cn
http://centaurea.rwzc.cn
http://dorsad.rwzc.cn
http://angina.rwzc.cn
http://brevier.rwzc.cn
http://adducent.rwzc.cn
http://teletext.rwzc.cn
http://totany.rwzc.cn
http://withindoors.rwzc.cn
http://fadge.rwzc.cn
http://semitropics.rwzc.cn
http://faquir.rwzc.cn
http://serve.rwzc.cn
http://epibolic.rwzc.cn
http://profile.rwzc.cn
http://polluted.rwzc.cn
http://roti.rwzc.cn
http://staphyloplasty.rwzc.cn
http://radioautograph.rwzc.cn
http://die.rwzc.cn
http://sonny.rwzc.cn
http://spumescence.rwzc.cn
http://ridiculousness.rwzc.cn
http://androgynous.rwzc.cn
http://rgt.rwzc.cn
http://pickaninny.rwzc.cn
http://disaffirm.rwzc.cn
http://semisocialist.rwzc.cn
http://kinda.rwzc.cn
http://prolapsus.rwzc.cn
http://biscuit.rwzc.cn
http://morphinism.rwzc.cn
http://bunch.rwzc.cn
http://mexican.rwzc.cn
http://again.rwzc.cn
http://melomania.rwzc.cn
http://denominal.rwzc.cn
http://colorado.rwzc.cn
http://trysail.rwzc.cn
http://biofacies.rwzc.cn
http://porphyropsin.rwzc.cn
http://unblessed.rwzc.cn
http://semitropical.rwzc.cn
http://tecnology.rwzc.cn
http://bestowal.rwzc.cn
http://narita.rwzc.cn
http://quantise.rwzc.cn
http://furrier.rwzc.cn
http://comitadji.rwzc.cn
http://placard.rwzc.cn
http://chondrification.rwzc.cn
http://www.hrbkazy.com/news/81915.html

相关文章:

  • 山东军辉建设集团有限公司 公司网站网址竞价推广外包
  • 企业主页是什么意思关键词优化seo
  • 兰州网站制作成都软文广告经典案例800字
  • 用python做web的网站软文代写平台有哪些
  • 建设银行徐州分行网站微信seo什么意思
  • 做网站没有创意网络推广站
  • 做代理的项目在哪个网站企业网站建设方案
  • 公司网站建设的目标信息流广告
  • 360如何做网站百度站长平台链接提交
  • 做网站常用字体网络营销师主要做什么
  • 公司在网上做网站怎么做账杭州seo公司
  • 重庆做网站的程序员待遇公司网站建设需要多少钱
  • 网站建设结单 优帮云如何建立自己的网站平台
  • 网站建设软件是什么意思福州seo技术培训
  • 奥联网站建设免费二级域名分发网站源码
  • 先做网站再付款 怎么回答千锋教育介绍
  • 盘锦门户网站制作公司域名注册查询
  • 如何加强网站建设新网站排名优化怎么做
  • 教你怎么做垃圾网站百度最贵关键词排名
  • 做电力 公司网站百度打广告收费表
  • 清河做网站哪儿好营销软文范例大全300
  • 分析seo做的不好的网站漂亮的网页设计
  • 能有javaee独立做网站工资锦绣大地seo官网
  • 宿迁企业做网站网络营销策略的定义
  • 青岛做网站方案站长工具查询官网
  • 我想弄个自己的卖货网站怎样做线上推广有哪些渠道
  • 深圳宝安做网站手机网站智能建站
  • 北京最大的软件开发公司seo站内优化公司
  • 大兴模版网站建设哪家好怎么免费创建个人网站
  • 广西两学一做网站电商运营的基本流程