Spring @MessageMapping(“/ hello”)XML eqivalent

时间:2016-10-03 07:30:46

标签: java xml spring websocket messaging

我找不到使用@MessageMapping注释的bean的XML配置:

@Controller
public class GreetingController {

    @MessageMapping("/hello")
    public Greeting greeting(final HelloMessage message) throws Exception {
        Thread.sleep(1000); // simulated delay
        return new Greeting("Hello, " + message.getName() + "!");
    }

任何帮助?

0 个答案:

没有答案