Does Spring MVC support JSR 311 annotations? Does Spring MVC support JSR 311 annotations? spring spring

Does Spring MVC support JSR 311 annotations?


Short answer: NO. To quote Juergen Hoeller:

We're considering integration with JAX-RS on a separate basis - separate from Spring MVC's own endpoint model -, possibly supporting the use of Jersey (the JAX-RS RI) with Spring-style beans in a Spring web application context. This might make Spring 3.0 as well, depending on the finalization of JSR 311 and Jersey in time for Spring 3.0 RC1. Otherwise it would be a candidate for Spring 3.1.

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.