1 个回答
把默认的urlconnection替换成OkHttpClient的话,只需要配置即可,下面演示下操作步骤:
1、在配置文件中新增:
2、在maven的pom里面引入
1、在配置文件中新增:
feign.okhttp.enabled=true
2、在maven的pom里面引入
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-okhttp</artifactId>
<version>10.2.0</version>
</dependency>
发布于:2年前 (2023-02-13) IP属地:四川省
我来回答
您需要 登录 后回答此问题!