linkTo
depends on the current HTTP request but the HTTP current request does not exist because the call was originated by a WebSocket event. Therefore you need a different approach.
Read full article from Spring Boot, java.lang.IllegalStateException when calling ControllerLinkBuilder.linkTo from a websocket - Stack Overflow
No comments:
Post a Comment