我找不到使用@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() + "!");
}
任何帮助?