• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem With RequestMap and Spring Web 3

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's true Mark


now work well, thank's for your time
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic