|  |  |  | 
|---|
|  |  |  | package com.zy.common.config; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.common.properties.SwaggerProperties; | 
|---|
|  |  |  | import com.core.common.BaseRes; | 
|---|
|  |  |  | import com.core.common.Cools; | 
|---|
|  |  |  | import com.core.common.R; | 
|---|
|  |  |  | import com.zy.common.properties.SwaggerProperties; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | 
|---|
|  |  |  | import org.springframework.context.annotation.Bean; | 
|---|
|  |  |  | 
|---|
|  |  |  | .responseModel(new ModelRef(String.valueOf(r.get("msg")))) | 
|---|
|  |  |  | .build() | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | }catch (IllegalAccessException ignore){} | 
|---|
|  |  |  | } catch (IllegalAccessException ignore) { | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new Docket(DocumentationType.SWAGGER_2) | 
|---|