Jersey ExceptionMapper doesn't map exceptions

前端 未结 4 1334
逝去的感伤
逝去的感伤 2020-12-19 04:05

my Spring Boot + Jersey REST service doesn\'t work as expected.

EmailExistsException is thrown in UserController but I only receive error 500. All the time. And my e

4条回答
  •  被撕碎了的回忆
    2020-12-19 04:50

    Have you configured custom ExceptionMapper as a jax-rs provider, and Are you sure that your exception is getting wrapped into EmailExistsException? You may have to look at this post.

    JAX-RS using exception mappers

提交回复
热议问题