|  |  |  | 
|---|
|  |  |  | package com.genersoft.iot.vmp.conf; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import org.springframework.context.annotation.Bean; | 
|---|
|  |  |  | import org.springframework.context.annotation.Configuration; | 
|---|
|  |  |  | import springfox.documentation.builders.ApiInfoBuilder; | 
|---|
|  |  |  | import springfox.documentation.builders.PathSelectors; | 
|---|
|  |  |  | import springfox.documentation.builders.RequestHandlerSelectors; | 
|---|
|  |  |  | import springfox.documentation.builders.RequestParameterBuilder; | 
|---|
|  |  |  | import springfox.documentation.schema.ScalarType; | 
|---|
|  |  |  | import springfox.documentation.service.ApiInfo; | 
|---|
|  |  |  | import springfox.documentation.service.Contact; | 
|---|
|  |  |  | import springfox.documentation.spi.DocumentationType; | 
|---|
|  |  |  | import springfox.documentation.spring.web.plugins.Docket; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.ArrayList; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Configuration | 
|---|
|  |  |  | public class Swagger3Config { | 
|---|
|  |  |  | 
|---|
|  |  |  | return new ApiInfoBuilder() | 
|---|
|  |  |  | .title("WVP-PRO 接口文档") | 
|---|
|  |  |  | .description("更多请咨询服务开发者(18010473990@@163.com)。") | 
|---|
|  |  |  | .contact(new Contact("Ray。", "http://www.ruiyeclub.cn", "ruiyeclub@foxmail.com")) | 
|---|
|  |  |  | .version("1.0") | 
|---|
|  |  |  | .contact(new Contact("panlinlin", "http://www.ruiyeclub.cn", "ruiyeclub@foxmail.com")) | 
|---|
|  |  |  | .version("2.0") | 
|---|
|  |  |  | .build(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|