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

Swagger报错

No enum constant org.springframework.web.bind.annotation.RequestMethod.Get

 

 错误写法httpMethod = "Get"

    @ApiOperation(value ="根据租id获取信息", httpMethod ="Get", response = ModuleBoxDTO.class)

改成httpMethod = "GET"

@ApiOperation(value ="根据租id获取信息", httpMethod ="GET", response = ModuleBoxDTO.class)

 

posted @ 2021-09-28 10:10  乖怪丶  阅读(1437)  评论(0编辑  收藏  举报
……