我這個專案升級成springboot后, $.post全部失效(報錯405),只有在前端改成$.get才生效,為什么呢?
后臺用的@RequestMapping 和 @PostMapping都不行,必須在前臺把post改成get,
其他還好,主要是登錄功能也必須改,這就惡心了,誰知道為什么么?
uj5u.com熱心網友回復:
是個html?HTML不支持post,加個重定向,試試呢,比如return "haha.html";
改成 return "redirect:haha.html";
uj5u.com熱心網友回復:
你用的 @controller 還是 @restcontroller ?uj5u.com熱心網友回復:
別猜了,是作業流里面包含了springsecurity造成的轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/268151.html
標籤:Web 開發
