Jersey version issue: MessageBodyReader not found for media type=application/xml

前端 未结 1 451
谎友^
谎友^ 2020-12-10 03:12

While writing a simple Jersey client that was consuming XML data, I came across this exception \"MessageBodyReader not found for media type=application/xml\". All of my sett

1条回答
  •  时光说笑
    2020-12-10 04:00

    Have a look at 27.3. Migrating from Jersey 2.15 to 2.16

    27.3.1.1. JAX-B providers separated from the core

    From version 2.16 onwards, all JAX-B providers are being bundled in a separate module.

    
        org.glassfish.jersey.media
        jersey-media-jaxb
        2.17
    
    

    0 讨论(0)
提交回复
热议问题