其他分享
首页 > 其他分享> > swagger使用报错:No enum constant org.springframework.web.bind.annotation.RequestMethod.get

swagger使用报错:No enum constant org.springframework.web.bind.annotation.RequestMethod.get

作者:互联网

@ApiOperation(value = "xxx功能", httpMethod = "GET")

httpMethod 的值需要纯大写就可以了
我这里有一个写成了get小写形式就报错了

httpMethod可用的值
"POST",
"GET",
"PUT",
"PATCH",
"DELETE",
"HEAD",
"OPTIONS"

标签:web,constant,GET,get,No,httpMethod,报错
来源: https://www.cnblogs.com/rchao/p/14824530.html