PayloadRootAnnotationMethodEndpointMapping 不起作用
我的 POJO 用 @Endpoint
和 @Payloadroot
注释,并且 Spring 配置文件中有 PayloadRootAnnotationMethodEndpointMapping
但出现错误“未找到适配器” ”。
I have my POJO annotated with @Endpoint
and @Payloadroot
and I have PayloadRootAnnotationMethodEndpointMapping
in by spring configuration file but I am getting error "no adapter found".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一个
EndpointMapping
(它告诉 Spring-WS 要调用哪个端点),还需要一个EndpointHandler
(它告诉 Spring-WS >如何调用它)。您拥有第一个(
PayloadRootAnnotationMethodEndpointMapping
),但您还需要一个EndpointHandler
,例如PayloadMethodEndpointAdapter
。从 Spring-WS 2.0 开始,您只需声明
,一切都会得到处理(请参阅 详细信息文档)。You need both an
EndpointMapping
(which tells Spring-WS which endpoint to invoke), and also anEndpointHandler
(which tells Spring-WS how to invoke it).You have the first one (the
PayloadRootAnnotationMethodEndpointMapping
), but you also need anEndpointHandler
, such as aPayloadMethodEndpointAdapter
.From Spring-WS 2.0 onwards, you can just declare
<sws:annotation-driven/>
, and it'll all be taken care of (see docs for details).