*
The moose likes Spring and the fly likes How do a RequestMapping in Spring 3.0 for /{id} and /form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How do a RequestMapping in Spring 3.0 for /{id} and /form" Watch "How do a RequestMapping in Spring 3.0 for /{id} and /form" New topic
Author

How do a RequestMapping in Spring 3.0 for /{id} and /form

Daniel Näslund
Greenhorn

Joined: Jul 14, 2009
Posts: 11

Problem solved. The mappings worked again after I changed some links that didn't use the contextpath correctly. I must have misread the stack trace.


I'm trying to create a simple CRUD-application using Spring 3.0 and it's new RESTful features. But these two mappings conflict:



If I do a call like this...



I end up with this:



Any suggestions? I've tried changing the order of the methods but that does not help. What is the priority ordering of the @ReqestMapping values? I've tried searching but the docs for 3.0 are sparse so far.

/Daniel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do a RequestMapping in Spring 3.0 for /{id} and /form