You can see the tutorial from here:
https://spring.io/guides/gs/messaging-stomp-websocket/
https://github.com/spring-guides/gs-messaging-stomp-websocket#what-you-ll-build
Also check this project too. This is a simple demo app of web sokect:
https://github.com/callicoder/spring-boot-websocket-chat-demo
This is how the simple demo app works:
https://spring-ws-chat.herokuapp.com/
(The author's original post: https://www.callicoder.com/spring-boot-websocket-chat-example/)
You can see my project too:
https://github.com/lechatthecat/JavaChatBoard