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

参考:https://blog.csdn.net/qq_35623773/article/details/84898578

报错

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

错误写法httpMethod = "Get"

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

改成httpMethod = "GET"

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

 

你可能感兴趣的:(springboot,java)