美文网首页
单独使用springCloud feignClient 忽略ht

单独使用springCloud feignClient 忽略ht

作者: 东_11f3 | 来源:发表于2019-06-28 19:28 被阅读0次

1.方案一: 

需要在@Configuration注解修饰的类中进行证书认证忽略的操作,这样就可以访问https开头的url

pom.xml 文件


<dependency>

<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope>

</dependency>

<dependency>

<groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> <version>2.1.1.RELEASE</version></dependency><dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId></dependency>

相关文章

网友评论

      本文标题:单独使用springCloud feignClient 忽略ht

      本文链接:https://www.haomeiwen.com/subject/hhbabqtx.html