我正在尝试让Websockets和消息代理与Spring协同工作。我基本上复制/粘贴了示例,包括来自reference guide的示例,但它们抛出异常将不起作用:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.messaging.converter.CompositeMessageConverter#0': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)这是导致此异常的XML:
<websocket:message-broker
application-destination-prefix="/app">
<websocket:stomp-endpoint path="/portfolio">
<websocket:sockjs />
</websocket:stomp-endpoint>
<websocket:simple-broker prefix="/topic, /queue" />
</websocket:message-broker>任何地方的示例都不涉及创建CompositeMessageConverter。我遗漏了什么?
https://stackoverflow.com/questions/38177028
复制相似问题