controller类
结果通过地址栏访问hello方法报不支持Get访问,原来地址栏输入链接默认都是Get方式,将@PostMapping改为@RequestMapping就可以了
controller类
结果通过地址栏访问hello方法报不支持Get访问,原来地址栏输入链接默认都是Get方式,将@PostMapping改为@RequestMapping就可以了
本文标题:springboot报错:Request method 'GET
本文链接:https://www.haomeiwen.com/subject/xxyvhqtx.html
网友评论