lundi 11 mai 2015

@ServerEndpoint( "/websocket") 404

I'm trying to implement this http://ift.tt/1IwdU3A

However I can't get it to map to /websocket on the class

@ServerEndpoint( "/websocket")
public class WebSocketController {


}

I can get a method to map using

@ResponseStatus(value = HttpStatus.OK)
@RequestMapping(value = "/websocket")
public WebSocketController<String> logError() {
}

But I can't use the same @RequestMapping on the Class, and @ServerEndpoint isn't having any effect.

Error is

 30217 [qtp351496750-25] WARN org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/websocket] in DispatcherServlet with name 'Spring MVC Dispatcher Servlet'

Can anyone help!?

Aucun commentaire:

Enregistrer un commentaire