MessageBodyWriter not found vogella tutorial

后端 未结 3 861
孤街浪徒
孤街浪徒 2021-01-19 14:44

I am attempting to recreate the most excellent vogella tutorial for create REST with java, JAX-RS and Jersey.

I\'m using eclipse Kepler with Java-EE perspective, to

3条回答
  •  情书的邮戳
    2021-01-19 15:11

    Have you written any custom MessageBodyWriter for your marshalling from Java to JSON. If yes then you need to have the @Produces annotation with 'application/json' in the provider implementation. For more details refer http://h2labz.blogspot.in/2014/12/marshalling-java-to-json-in-jax-rs.html

提交回复
热议问题