How to use Servlet 3 @WebServlet & async with Spring MVC 3?

后端 未结 5 1487
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 21:57

I would like to integrate the servlet 3.0 async support with spring MVC. Something like:

@RequestMapping(\"/chat\")
@WebServlet(name=\"myServlet\", asyncSupp         


        
5条回答
  •  春和景丽
    2020-12-14 22:20

    You can sort of do this now with the fantastic Atmosphere library:

    Here is a Spring MVC example: https://github.com/ghillert/atmosphere-spring-web-mvc

提交回复
热议问题