spring-boot-starter-swagger icon indicating copy to clipboard operation
spring-boot-starter-swagger copied to clipboard

自定义状态码能否代码实现?

Open lapDog opened this issue 7 years ago • 0 comments

// 取消使用默认预定义的响应消息,并使用自定义响应消息 swagger.apply-default-response-messages=false swagger.global-response-message.get[0].code=401 swagger.global-response-message.get[0].message=401get swagger.global-response-message.get[1].code=500 swagger.global-response-message.get[1].message=500get swagger.global-response-message.get[1].modelRef=ERROR swagger.global-response-message.post[0].code=500 swagger.global-response-message.post[0].message=500post swagger.global-response-message.post[0].modelRef=ERROR

若我的状态码过多,是否能通过代码实现,如何实现?能否分页?希望加上此功能,谢谢!

lapDog avatar Aug 08 '18 03:08 lapDog