腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
使用
Spring
Boot
向
邮递员
调用
虚拟
WebClient
spring-boot
、
httprequest
、
spring-webflux
、
webclient
、
dummy-data
我正在尝试
使用
Spring
Boot
WebClient
从一个
虚拟
的Api中获取信息,这是一个Http请求。当我进入
邮递员
的时候,我不会得到任何信息。 谢谢你能给我的任何见解。model.addAttribute("listemps", webClientApp.webClientBuilder());} Web客户端 private
WebClient
webClient
;
浏览 21
提问于2021-11-11
得票数 0
1
回答
既然我的基本URI不是固定的,那么在Webflux中一次又一次地创建
Webclient
是明智的吗?
spring-webflux
、
project-reactor
、
reactor-netty
如果我的基本URL改变了,我需要一次又一次地创建
Webclient
吗?如果不是,那么下面的创建Web客户端的方法是正确的吗?
WebClient
.create();,然后每当我进行
调用
时都会一次又一次地更改URI。据我所知,创建
WebClient
肯定是一项繁重的操作。> ctx.addHandlerLast(new ReadTimeoutHandler(readTimeout, TimeUnit.MILLISECONDS)))); return
WebClient
.builder
浏览 23
提问于2018-12-19
得票数 11
2
回答
以
WebClient
作为请求属性的ClientRegistrationId (
使用
OAuth 2.0)
java
、
spring-boot
、
rest
、
oauth-2.0
、
webclient
我正在搜索一个工作示例,在这个示例中,当我
向
ClientRegistrationId添加请求属性时,可以设置
WebClient
。
spring
.io提供的示例不适用于我()。当我尝试这个示例时(
使用
默认的ClientRegistrationId):
WebClient
webClient
(ReactiveClientRegistrationRepository() .build();
调用
浏览 9
提问于2021-09-22
得票数 3
1
回答
Spring
WebClient
作为RestTemplate的替代方案
spring-boot
、
resttemplate
、
spring-webflux
、
project-reactor
我们正在
使用
spring
2.0.6和
Spring
5.0.10编写一个新项目。ResponseEntity<String> response =
webClient
.get() .flatMap(r -> r.to
浏览 0
提问于2018-10-31
得票数 9
回答已采纳
23
回答
8080端口已经在
使用
。弹簧启动微服务
java
、
spring-boot
、
gradle
我正在尝试从gradle项目中
调用
webAPI。 testImplementation 'org.springframework.
boot
:
spring
-
boot
-starter-testreactor-
spring
:1.0.1.RELEASE'如果我删除以下依赖项 compile
浏览 23
提问于2019-06-07
得票数 40
回答已采纳
1
回答
在
Spring
中
使用
WebClient
时正确
使用
依赖关系
spring-boot
、
spring-mvc
、
spring-webclient
我正在
使用
Spring
开发一些控制器。 'org.springframework.
boot
:
spring
-
boot
-starter-web:2.4.1' // (2) F
浏览 4
提问于2021-01-06
得票数 2
回答已采纳
1
回答
Spring
Reactor Web客户端用例。用
WebClient
替换RestTemplate
spring-boot
、
resttemplate
、
project-reactor
我正在做一个微服务项目,在这个项目中,我的单个
spring
boot
微服务将
调用
自己,并主要
调用
第三方API来获取和保存数据。因为我
使用
的是遗留的
Spring
启动应用程序,所以我不能想到用基于反应器的微服务来取代它。但我正在考虑用新的
Spring
Reactor
Webclient
替换我的RestTemplate (用于与其他MS和第三方应用程序进行通信),以获得异步
调用
的一些优势。我的用例是
使用
Spring
浏览 13
提问于2018-12-17
得票数 0
1
回答
WebClient
不解析
java
、
spring
、
gradle
、
intellij-idea
为了
使用
新的Intellij API,我在Intellij项目中包含了
WebClient
。dependencies { compile 'org.springframework.
boot
:
spring
-
boot
-starter-webflux' //
浏览 1
提问于2020-06-19
得票数 3
回答已采纳
1
回答
将
Spring
Webclient
日志级别从调试更改为警告或错误
java
、
logging
、
spring-webclient
我有一个非常简单的
WebClient
应用程序(不是
spring
boot
应用程序),在这个应用程序中我
使用
Spring
并行地进行HTTP
调用
。我已经在全局初始化了它,如下所示: private static final
WebClient
webClient
=
WebClient
.create(); 并在我的应用程序中
使用
它。io.netty.util.internal.logging.InternalLogger
浏览 117
提问于2021-09-27
得票数 1
2
回答
找不到'org.springframework.web.reactive.function.client.
WebClient
‘类型的Bean
spring-boot
、
spring-webclient
我正在
使用
这个手册https://golb.hplar.ch/2018/01/Sending-Web-push-messages-from-
Spring
-
Boot
-to-Browsers.html的例子来研究推送通知
Boot
</description> <groupId>org.springframework.
boot
</groupId> <art
浏览 407
提问于2019-06-13
得票数 1
回答已采纳
2
回答
如何
使用
webclient
返回一个字符串?
java
、
reactive-programming
、
spring-webflux
、
spring-webclient
我想进行这个
调用
并返回一个字符串,但是我遇到了以下错误:这是一个只有3个依赖项的springboot项目。public class HomeController { @GetMapping("
浏览 9
提问于2022-10-22
得票数 1
回答已采纳
8
回答
网关无法解析名称
spring-boot
、
spring-cloud
、
spring-cloud-gateway
通过网关进行的Api
调用
抛出java.net.UnknownHostException,即使我能够用给定的主机名直接访问应用程序。
Spring
版本:2.4.2Java版本: 11 注释: Samething与2.3.8一起工作。
浏览 11
提问于2021-02-10
得票数 16
1
回答
弹簧测试HTMLUnit NoSuchMethod CookieManager.getCookies(URL)
java
、
spring
、
maven
、
htmlunit
、
spring-web
我在
使用
单元运行HTMLUnit测试时遇到了问题。当对getPage()实例
调用
WebClient
时,将得到一个noSuchMethod错误,如下所示: <dependency> <groupId>org.springframework.test.htmlunit</groupId>
浏览 2
提问于2017-12-07
得票数 2
2
回答
spring
-启动程序-web-反应性M4依赖项
java
、
spring-boot
、
spring-webflux
SpringWebReactive中有一个类
WebClient
and ClientRequest。如果我们查看文档,下面是
使用
ClientRequest
使用
WebClient
的方法。
WebClient
client =
WebClient
.create(new ReactorClientHttpConnector()); dependencies {
浏览 6
提问于2017-01-31
得票数 1
1
回答
为什么WebFlux-
WebClient
超时不能工作?
java
、
spring-boot
、
netty
、
spring-webflux
、
spring-webclient
我正在
使用
SpringBootWeb通量2.4.4 (最新版本),并试图
使用
WebClient
调用
后端URL。
WebClient
总是响应在20秒以上。如果我直接点击URL,它的响应以毫秒为单位。Pom如下所示: <dependency> <groupId>org.springframework.
boot
</groupId><artifactId><e
浏览 2
提问于2021-04-11
得票数 2
2
回答
无法自动连接`WebTestClient` -无自动配置
spring
、
spring-boot
、
spring-webflux
我们
使用
spring
Framework5和
spring
boot
2.0.0.M6,我们还
使用
WebClient
进行反应式编程。WebEnvironment.RANDOM_PORT) private WebTestClient
webClient
Parameters params = new Parameters("#s23lkjslökjh12"
浏览 2
提问于2018-01-12
得票数 36
回答已采纳
1
回答
带有MockWebServer的WebTestClient挂起
spring-boot
、
spring-boot-test
、
spring-webclient
、
mockwebserver
、
webtestclient
我有一个
spring
boot
应用程序,它
使用
"
spring
-
boot
-starter-webflux“公开rest api。当我的一个端点被
调用
时,我的应用程序
调用
其他rest服务。我正在尝试
使用
WebTestClient来模拟
调用
我的客户机,并
使用
MockWebServer来模拟我
调用
的外部rest服务来进行集成测试。我还重写了
spring
配置,以
使用</em
浏览 37
提问于2020-06-13
得票数 1
4
回答
在
Spring
WebFlux
webclient
中设置超时
java
、
spring
、
spring-boot
、
timeout
、
spring-webflux
我正在
使用
Spring
Webflux
WebClient
从我的
Spring
boot
应用程序进行REST
调用
。每次都会在30秒内超时。下面是我尝试在
Spring
webfulx的
WebClient
中设置套接字超时的一些代码。ctx.addHandlerLast(new ReadTimeoutHandler(600000, TimeUnit.MILLISECONDS));并尝试
使用
“clientCo
浏览 1
提问于2018-02-27
得票数 14
1
回答
如何在运行在Tomcat上的
Spring
应用程序中
使用
Spring
的反应性
WebClient
spring-boot
、
spring-mvc
、
spring-webflux
无法在运行于Tomcat上的基于
Spring
引导的Web应用程序中
使用
Spring
的反应性
WebClient
。由于未解决的依赖关系,应用程序启动本身正在失败。: 'org.springframework.
boot
', name: '
spring
-
boot
-starter-data-redis' compile group: 'org.springframework.
boot
:
spri
浏览 3
提问于2019-04-25
得票数 6
1
回答
在独立应用程序中
使用
Spring
WebClient
spring-boot
、
spring-webflux
我有一个独立的
Spring
引导应用程序,并且希望
使用
Spring
的
WebClient
来发出请求。但不知何故,
WebClient
并没有提出这些请求。不过,我可以
使用
RestTemaplate发出请求。我是不是遗漏了什么,或者
WebClient
不能用于独立的项目?
boot
project using RestTemplate restTemplate.getForEntity("http://localhost
浏览 1
提问于2018-09-23
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券