While helping out someone else, I noticed they were trying to do Spring development using the @GET
, @Consumes
, and @Path
annotations. It is my understanding that these annotations come from the JSR-311 specification.
I simply suggested that they use the Spring @RequestMapping
annotation for mapping endpoints to their controller, but it made me curious as to whether or not Spring MVC (any version) supports JSR 311?
Short answer: NO. To quote Juergen Hoeller:
However I haven't found such a support neither in 3.0 nor in 3.1.
Of course you can integrate frameworks like Apache CXF and use standard JSR-311 annotations. Spring MVC itself does not recognize these annotations.