Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Daniel Näslund
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!