RESTEasy: Could not find writer for content-type application/json type

前端 未结 4 446
甜味超标
甜味超标 2020-12-03 18:55

I have a restful service (post) that consumes (application/json) and produces (application/json). The single param for this service is an annotated java object.

I am

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 19:33

    I am using all libraries included (maven project), but still when running as standalone application, generated by maven-assembly-plugin, I got same error, but when running from IDE it works without problem.

    I also had problem with log4j2 logging as it was completely broken when running as standalone fat jar application (in IDE works perfectly), so I first focus on solving this:

    Log4j2 configuration not found when running standalone application builded by shade plugin

    So I solved problem with missing provider and log4j2 by migrating from maven-assembly-plugin to maven-shade-plugin

提交回复
热议问题