How to reuse Jersey's JSON/JAXB for serialization?

前端 未结 7 1353
失恋的感觉
失恋的感觉 2020-11-29 23:48

I have a JAX-RS REST service implemented using Jersey. One of the cool features of JAX-RS/Jersey is how easily a POJO can be turned into a REST service, simply by sprinkling

7条回答
  •  难免孤独
    2020-11-30 00:46

    Here's a simple brief example of using JAXB to map objects to JSON (using Jackson):

    http://ondra.zizka.cz/stranky/programovani/java/jaxb-json-jackson-howto.texy

提交回复
热议问题