0
我有一个使用Spring的Java应用程序,它使用Websocket,只要RabbitMQ与tomcat运行在同一台计算机上,它就可以正常工作。Java Spring STOMP:设置代理IP
如何设置RabbitMQ的IP?我正在阅读文档,但我没有找到它。
我现在的配置是非常相似的one in the documentation
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:websocket="http://www.springframework.org/schema/websocket"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/websocket
http://www.springframework.org/schema/websocket/spring-websocket.xsd">
<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>
</beans>
我怎么可以设置IP?