Spring 4 WebSocket app

后端 未结 2 1203
猫巷女王i
猫巷女王i 2020-12-31 23:56

I tried to run this example from the spring site: tutorial except the Spring Boot part.

Web.xml


    Archetype C         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-01 00:12

    Also if you want not to pass login/password to server (as you might rely on Spring security) then you shouldn't use

    stompClient.connect('', '', function(frame) {
    

    but instead

    stompClient.connect({}, function(frame) {
    

    Take a look here: https://github.com/spring-guides/gs-messaging-stomp-websocket/issues/10

提交回复
热议问题