首页 > TAG信息列表 > EnableSwagger2
javaApi Swagger配置
后端技术springboot+mybatis,配置swagger步骤: 1、新建配置类SwaggerConfig @Configuration @EnableSwagger2 @ComponentScan(basePackages = "com.chkj.project12") public class SwaggerConfig { ApiInfo apiInfo(){ return new ApiInfoBuilder() .title("Web service APIS2021-09-17
swagger 添加依赖 编写配置类(@configuration、@EnableSwagger2) 接口说明 参数或返回值为对象 swagger-ui使用swagger生成实时接口文档
1) 引入Swagger2和swagger ui (在父工程中依赖) <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>Swagger
1.创建spring boot项目2.导入jar <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui --><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><version>2.9.2</verSwagger
1.创建spring boot项目2.导入jar <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui --><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><version>2.9.2</ver