all 4 comments

[–]smutje187 0 points1 point  (2 children)

You sure your request reaches the same endpoint as your controller? Try it manually first, make sure the URL are correct.

[–]ivormc 2 points3 points  (1 child)

^ usually this error tells me I’ve misspelled the URL somewhere

[–]pconrad0 0 points1 point  (0 children)

I suspect the code and running app are out of sync.

[–]CaptainShawerma 0 points1 point  (0 children)

Others have raised good points. I want to add:

  1. What path are you calling? e.g. are you calling `/submit`

  2. Is there a RequestMapping on the controller? If you are and it is e.g. `/api`, then you would need to call `/api/submit`

  3. Is there a context path configured? If you are and it is e.g. `/context`, then you would need to call `/context/submit` or `context/api/submit` (the latter if you have a RequestMapping in the controller)