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

Problem With RequestMap and Spring Web 3

 
andrea mucci
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

this is my controller:



if i use this url: http://mysite.com/barencode/codabar/aljfhjadhf?_token=ashgdkashd
all work well but when i use an autogenerated code from mashape.com ( this is the API container ) i obtain this error:


why spring dont match the handler. apparently the url is the same as the previous url?
i don't undrstand

Would any good soul who could help me?
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a guess, because a lot looks fine and as you said the URL you tried worked. So the only thing that stuck out to me was

headers="Accept=application/json, application/xml"

So your method will be called as long as the accept header is valued at json or xml. What if the request mashape created had a different accept header value, then it wouldn't match your request mapping.

Mark
 
andrea mucci
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's true Mark


now work well, thank's for your time
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic