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

灰色网站如何用模板做公司网站

灰色网站,如何用模板做公司网站,免费申请手机号,有没有专门做飞卢小说盗版的网站SpringCloud openFeign 之 获取被调用服务名 一. 概述 低版本 feign 只能获取到被调用方法的信息。 只有高版本 feign 才支持获取到被调用服务的信息。 二. 代码实现 package com.zxguan.springcloud2.template.user;import com.zxguan.springcloud2.template.user.config…SpringCloud openFeign 之 获取被调用服务名 一. 概述 低版本 feign 只能获取到被调用方法的信息。 只有高版本 feign 才支持获取到被调用服务的信息。 二. 代码实现 package com.zxguan.springcloud2.template.user;import com.zxguan.springcloud2.template.user.config.TraceInterceptor; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.openfeign.EnableFeignClients;EnableEurekaClient EnableFeignClients(value com.zxguan, defaultConfiguration TraceInterceptor.class) SpringBootApplication() public class UserApplication {public static void main(String[] args) {SpringApplication.run(UserApplication.class, args);}}Component public class TraceInterceptor implements RequestInterceptor {Overridepublic void apply(RequestTemplate requestTemplate) {Target target requestTemplate.feignTarget();System.out.println( target.name());}}?xml version1.0 encodingUTF-8? project xmlnshttp://maven.apache.org/POM/4.0.0 xmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsdmodelVersion4.0.0/modelVersionparentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.2.8.RELEASE/versionrelativePath/ !-- lookup parent from repository --/parentgroupIdcom.zxguan.springcloud2.template/groupIdartifactIduser/artifactIdversion0.0.1-SNAPSHOT/versionnameuser/namedescriptionDemo project for Spring Boot/descriptionpropertiesjava.version1.8/java.versionspring-cloud.versionFinchley.RELEASE/spring-cloud.versionproject.build.sourceEncodingUTF-8/project.build.sourceEncodingmaven.compiler.source1.8/maven.compiler.sourcemaven.compiler.target1.8/maven.compiler.target/propertiesdependencies !-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-openfeign-core --dependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-openfeign-core/artifactIdversion2.2.10.RELEASE/version/dependency!-- https://mvnrepository.com/artifact/io.github.openfeign/feign-core --dependencygroupIdio.github.openfeign/groupIdartifactIdfeign-core/artifactIdversion11.0/version/dependency!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-openfeign --dependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-openfeign/artifactIdversion2.2.10.RELEASE/version/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-eureka-client/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-configuration-processor/artifactIdoptionaltrue/optional/dependencydependencygroupIdorg.projectlombok/groupIdartifactIdlombok/artifactIdoptionaltrue/optional/dependencydependencygroupIdcom.google.guava/groupIdartifactIdguava/artifactIdversion18.0/version/dependency/dependenciesdependencyManagementdependenciesdependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-dependencies/artifactIdversionFinchley.RELEASE/versiontypepom/typescopeimport/scope/dependency/dependencies/dependencyManagement /project三. 特别注意 在升级 feign-core 版本后可能会出现 java.lang.NoSuchMethodException 异常。这就说明有版本问题此时需要定位到报错位置将对应方法所属 jar 包调整到相应版本。
http://www.w-s-a.com/news/662143/

相关文章:

  • 免费flash网站模板怎么仿网站链接
  • 泉州网站建设哪家好平面设计转行做什么比较好
  • 忘记网站备案账号设计一个网站
  • 国内购物网站哪个最好海珠营销网站建设报价
  • 小型网站搭建logo免费制作
  • dede 网站模板哈尔滨房产信息网官方网站
  • 设计师个人作品集模板班级优化大师网页版登录
  • 高端网站建设教学网站开发前期准备工作
  • 网站评论列表模板设计官网的
  • 怎么做可以访问网站ui设计自学学的出来吗
  • 网站如何接入支付宝软件开发工作内容描述
  • 廊坊网站建设搭建整合营销传播的效果表现为
  • 网站服务器在本地是指园林绿化
  • 公司网站建设需要什么科目网站代运营价格
  • 网站建设前的ER图ppt模板图片 背景
  • 做一个网站花多少钱网站导航营销步骤
  • 仙桃网站定制做房产网站能赚钱吗
  • 西安网站制作模板最新源码
  • 南京江宁网站建设大学高校网站建设栏目
  • 模板网站建设明细报价表做网站第一
  • 公司网站建设系统软件开发 上海
  • 怎么让公司建设网站固安县建设局网站
  • 360免费建站官网入口手机网站建设设计
  • 商城网站建站系统dw如何做网页
  • 网站建设的公司收费我有网站 怎么做淘宝推广的
  • 网站建设策划书事物选题手机兼职app
  • html5 微网站模版wordpress博客速度很慢
  • 怎么做五个页面网站网络推广如何收费
  • 上虞宇普电器网站建设江西建筑人才网
  • 在吗做网站商城一个网站需要服务器吗