我有一个通过sockJs设置websocket的spring boot应用程序。
public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {
stompEndpointRegistry.addEndpoint("/gs-guide-websocket").setAllowedOrigins("*")
.withSockJS();
}我正在openshift中部署它,它有一个限制,只能将端口8000用于websocket。是否可以将spring配置为对ws://使用端口8000,并将http://保持为端口80?
https://stackoverflow.com/questions/44514789
复制相似问题