springboot在集成swagger2启动时

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"

你可能感兴趣的:(程序)