title: SimpMessagingTemplate not sending messages in spring boot
body: <p>Hi all I am trying to send messages to Stomp Endpoints but I not getting any.I am using spring boot with stomp following are my classes </p>
  
  <pre><code>@Controller
  public class GreetingController {
  
    @MessageMapping("/hello")
    @SendTo("/topic/greetings")
    public Greeting greeting(HelloMessage message) throws Exception {
      System.out.println(message.getName());
      Thread.sleep(13000); // simulated delay
      return new Greeting("Hello, " + message.getName() + "!");
    }
  
  }
  
  @Controller                                                
  public class Testcont {
  
    @Autowired
    private SimpMessagingTemplate messageSender;
  
    @RequestMapping(value="/Users/get",method=RequestMethod.POST)
    @ResponseBody
    public String getUser(@RequestParam(value = "userId") String userId, @RequestParam(value = "password") String password, @RequestParam(value="port") String port, HttpServletRequest request) {
      HelloMessage mess=new HelloMessage();
      mess.setName(userId);
      messageSender.convertAndSend("/app/hello",mess);
      return "Success";
  
  }
  </code></pre>
  
  <p>and my Configuration for websocket </p>
  
  <pre><code>@Configuration
  @EnableWebSocketMessageBroker
  public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
  
      @Override
      public void configureMessageBroker(MessageBrokerRegistry config) {
          config.enableSimpleBroker("/topic");
          config.setApplicationDestinationPrefixes("/app");
      }
  
      @Override
      public void registerStompEndpoints(StompEndpointRegistry registry) {
          registry.addEndpoint("/hello").withSockJS();
      }
  
  }
  </code></pre>
  
  <p>I am not getting any errors in consoles .the above code is working great with web browsers .</p>