swagger使用报错:No enum constant org.springframework.web.bind.annotation.RequestMethod.get
Posted 荣超
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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"
以上是关于swagger使用报错:No enum constant org.springframework.web.bind.annotation.RequestMethod.get的主要内容,如果未能解决你的问题,请参考以下文章