Spring-boot-jersey with JAX-RS API 2.1 (SSE)

What is the timeline for supporting Spring Boot with JAX-RS 2.1 (using Jersey)?

Jersey added support for JAX-RS 2.1 (JAX-RS API) in Jersey 2.26 (released 2017/09/06). This has changed Jersey support for HTTP Server-Sent Events (SSE) events from a specific Jersey implementation to a JAX-RS API- based implementation .

Spring Boot Jersey integration (spring-boot-starter-jersey), release 1.5.8, uses Jersey 2.25.1.

Using Spring boot 1.5.8 and overriding jersey versions from spring-boot-starter-jersey to use 2.26 doesn't seem to work. Objects Sseand are SseEventSinknot entered into request handlers (when using @Context).

I'm not quite sure if this is a problem with Spring Boot or Jersey. Therefore, a more general question is when Spring Boot with JAX-RS 2.1 will be supported.

+4
source share
1 answer

JAX-RS 2.1 will be supported through Jersey 2.26 in Spring Boot 2. It has already been merged .

+2
source

Source: https://habr.com/ru/post/1688700/


All Articles