Computer scienceBackendSpring BootWebWebSockets

STOMP over web sockets

Create the Controller class

Report a typo

Fill in the gaps so that the Controller class is correctly implemented.

Fill in the gaps with the relevant elements
@
public class GreetingController {

    @Mapping("/hello")
    @To("/topic/greetings")
    public String greeting(String personName) throws Exception {
        Thread.sleep(1000); // simulated delay
        return "Hello, " + HtmlUtils.htmlEscape(personName) + "!";
    }
}
BroadcastSendMessageTopicController
___

Create a free account to access the full topic