This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Daniel Näslund
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic