![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swagger
麦香--老农
优秀,始于思想,成于实践,大成于坚持
展开
-
SpringBoot整合Swagger与统一返回结果问题
写此博客,以此留念,解决了因使用统一返回结果对象导致,swagger-ui看不到返回对象属性注释的原因。(没有使用泛型导致)Springboot统一结果返回对象@Data@ApiModel("统一API响应结果封装") public class DataResult<T> { /**操作结果 0为成功*/ @ApiModelProperty("操作结果 0为成功") private int status = 200; /**错误co...原创 2021-07-08 16:51:04 · 2163 阅读 · 0 评论 -
springboot整合swagger
【代码】springboot整合swagger。原创 2023-12-14 09:45:31 · 421 阅读 · 0 评论