首页 > TAG信息列表 > PathSelectors
Swagger配置类
Swagger配置类 package com.guoba.servicebase.config; import com.google.common.base.Predicates; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuSpringboot 使用 Wrapper ——在线文档和测试接口
Wrapper 可以生成一个在线的文档,并且可以在里面方便的进行Rest风格测试 配置 maven <!--swagger--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <scope>谷粒学苑项目第一天-配置Swagger2进行接口测试
1.引入相关依赖 <!--swagger--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <scope>provided </scope> </depende