![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 84
shenjianxz
不断积累,才能达到,没有目标,何来动力!,努力勤奋定能成功!
展开
-
swagger常用注解和配置
常用到的注解有: ApiApiModelApiModelPropertyApiOperationApiParamApiResponseApiResponsesResponseHeader 1. api标记 Api 用在类上,说明该类的作用。可以标记一个Controller类做为swagger 文档资源,使用方式: @Api(value = "/user", description =转载 2018-01-25 16:05:17 · 2117 阅读 · 0 评论 -
SpringBoot整合Swagger2
相信各位在公司写API文档数量应该不少,当然如果你还处在自己一个人开发前后台的年代,当我没说,如今为了前后台更好的对接,还是为了以后交接方便,都有要求写API文档。 手写Api文档的几个痛点: 文档需要更新的时候,需要再次发送一份给前端,也就是文档更新交流不及时。接口返回结果不明确不能直接在线测试接口,通常需要使用工具,比如postman接口文档太多,不好管理 Swa转载 2018-01-25 15:04:15 · 1306 阅读 · 0 评论 -
springboot Interceptor拦截器excludePathPatterns失效
@SuppressWarnings("deprecation") @Configuration public class GlobleConfig extends WebMvcConfigurerAdapter{ @Override public void addInterceptors(InterceptorRegistry registry) { registry.addIntercept...转载 2018-08-27 15:25:10 · 7326 阅读 · 0 评论