當(dāng)前位置:
首頁 >
SpringBoot出现Request method ‘GET‘ not supported
發(fā)布時(shí)間:2023/12/31
34
豆豆
生活随笔
收集整理的這篇文章主要介紹了
SpringBoot出现Request method ‘GET‘ not supported
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
解決方案:
@RequestMapping("/registerForm")
改成:
@RequestMapping(value="registerForm",method=RequestMethod.GET)
?
注意上述方法不要應(yīng)用到
@PostMapping(value="/upload")中去。
總結(jié)
以上是生活随笔為你收集整理的SpringBoot出现Request method ‘GET‘ not supported的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Remarkable启动遇到Spellc
- 下一篇: intellij选择困难症Spring