Reply To: Rewrite Annotations

Splash Forums Rewrite Users Rewrite Annotations Reply To: Rewrite Annotations

#24216

Oleg
Participant

Your example https://github.com/ocpsoft/rewrite/blob/master/showcase/rest-ws/src/main/java/org/ocpsoft/rewrite/showcase/rest/RestRewriteConfiguration.java is really good! But how can we combine annotations on class level with annotations on method level? In my Spring example above the class is annotated with @RequestMapping(“/”) and the methods e.g. with @RequestMapping(value = “/demo”, method = RequestMethod.GET). The method’s annotations should complement the class’ one. Do you know what I mean?

  • This reply was modified 8 years, 7 months ago by  Oleg.