|  |  |  | 
|---|
|  |  |  | .build() | 
|---|
|  |  |  | .globalOperationParameters(this.getParameterList()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @Bean | 
|---|
|  |  |  | public Docket getDocket4() { | 
|---|
|  |  |  | return new Docket(DocumentationType.SWAGGER_2) | 
|---|
|  |  |  | .apiInfo(this.getApiInfo()).groupName("【JTT808接口API】") | 
|---|
|  |  |  | .host(host) | 
|---|
|  |  |  | .select() | 
|---|
|  |  |  | .apis( basePackage("com.doumee.jtt808.web")) | 
|---|
|  |  |  | // 设置需要被扫描的类,这里设置为添加了@Api注解的类 | 
|---|
|  |  |  | //                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) | 
|---|
|  |  |  | .paths(PathSelectors.any()) | 
|---|
|  |  |  | .build() | 
|---|
|  |  |  | .globalOperationParameters(this.getParameterList()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private List<Parameter> getParameterList() { | 
|---|
|  |  |  | ParameterBuilder tokenPar = new ParameterBuilder(); | 
|---|