I consider Jersey to be a good example of what is wrong with Java. Annotation driven APIs don't really lend themselves to composability - sparkframework, vertx or ratpack are much better ways of building REST apis with Java 8.
Using the annotations could probably be done a different way, but it follows many of the popular micro-frameworks like Sinatra for Ruby, or Express for Node.js.