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
Answer that solved my problems:
I've put packages("package.name"); which is my root package name and exception mappers work like a charm.
@Component
@ApplicationPath("/api")
public class JerseyConfig extends ResourceConfig
{
public JerseyConfig()
{
packages("package.name");
register(UserController.class);
register(TimezoneController.class);
}
}