No enum constant org.springframework.web.bind.annotation.RequestMethod.post
使用以下:
public enum RequestMethod { GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE; private RequestMethod() { } }
主要是在使用
ApiOperation(
httpMethod = "post"
)
改成:
ApiOperation(
httpMethod = "POST"
)