Article: Spring 2.5: New Features in Spring MVC
- It does not have any interface or base class requirements.
- It allows any number of request handling methods.
- It allows a high degree of flexibility in the method's signature.
Rossen's article follows Mark Fisher's article What's New in Spring 2.5: Part I about the simplified configuration and annotation-based functionality in the core spring context.
Using Spring @MVC for REST services
by
Terence Ingram
I chose this as I was using hibernate and I really like the @Transactional annotation :) When @MVC was released I easily upgraded my old services. I am quite happy with it.
But I am hoping that the Spring crew get more serious about REST and enhance @MVC to fully support REST. I have some suggestions that would make it easier: enhance the @RequestMapping annotation to be more like the @Path annotation as used in javax.ws.rs.Path. What I am looking for is the ability to break up the URL easily i.e. @RequestMapping("/accounts/{id}/details") where I can then reference id as an instance variable in my code having the value populated. Also automatic WADL support would be nice. This is not essential but would save me the hassle of doing it by hand.
Re: Using Spring @MVC for REST services
by
Ray Krueger
Re: Using Spring @MVC for REST services
by
Dmitriy Kopylenko
Re: Using Spring @MVC for REST services
by
Geoffrey Wiseman
This was one of the first questions that came to my mind looking over the parameter handling and url mapping in Spring MVC as well.
Link needed
by
Colin Sampaleanu
Regards,
Colin
Re: Link needed
by
Colin Sampaleanu
Re: Using Spring @MVC for REST services
by
Gavin Terrill
Re: Using Spring @MVC for REST services
by
Stefan Tilkov
The JAXRS stuff is a kind of a pain in the ass to use
Could you elaborate? What exactly do you consider to be a PITA?
Re: Using Spring @MVC for REST services
by
David Tkaczyk
Re: Using Spring @MVC for REST services
by
Geoffrey Wiseman
I have had nothing but good luck with it and find it extremely easy to use. Maybe I haven't used as advanced features, but I'm curious as to why you think so. Thanks.
Out of curiosity, what JAX-RS implementation are you using? I've used Restlet in its pre-JAX-RS form and a few other approaches for rest, but still haven't done more than experiment with JAX-RS implementations, so I'm happy to hear feedback "from the field" as it were.
Re: Using Spring @MVC for REST services
by
Juergen Hoeller
We'll also provide a RestTemplate class for client-side HTTP access to REST-style services.
Currently, the first Spring Framework 3.0 milestone - including a first cut of the dedicated REST support - is scheduled for mid September. We are aiming for GA fairly soon, with 3.0 RC1 being scheduled for December already.
With respect to JAX-RS: The JSR 311 spec essentially defines a dedicated REST resource endpoint model there, not being a great fit for REST-enabling an existing MVC endpoint model. This is why JAX-RS is not the primary point of our REST strategy.
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.
Juergen
Re: Using Spring @MVC for REST services
by
Terence Ingram
Can an interceptor work with an annotation based form controller?
by
Vernon W
Does anyone have an information in this regard?
Educational Content
Clojure in the Field
Stuart Halloway May 23, 2013
Tuning the Size of Your Thread Pool
Kirk Pepperdine May 23, 2013




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think