Home > Back-end >  After this project I upgraded to springboot, $. Post all failure (error 405), only on the front end
After this project I upgraded to springboot, $. Post all failure (error 405), only on the front end

Time:03-13

After this project I upgraded to springboot, $. Post all failure (error 405), only on the front end to $. Get to come into force, why?
Background with @ RequestMapping and @ PostMapping all not line, must get the post at the front desk to get,
Other well, is mainly must also change the login function, it's disgusting, who knows why?

CodePudding user response:

A HTML? HTML doesn't support post, add a redirect, try it, such as
Return "haha. HTML";
To return "redirect: haha. HTML";

CodePudding user response:

@ controller or @ restcontroller do you use?

CodePudding user response:

Don't guess, is caused by workflow contains springsecurity inside
  • Related