Fill in the gaps so that the Controller class is correctly implemented.
STOMP over web sockets
Create the Controller class
Report a typo
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) + "!";
}
} ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.