package com.dev.books.config;
import com.mangofactory.swagger.configuration.SpringSwaggerConfig;
import com.mangofactory.swagger.models.dto.ApiInfo;
import com.mangofactory.swagger.plugin.EnableSwagger;
import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.*;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
/**
* @Description:swagger配置
* @Author: LKD
* @Date: 2018/08/07 16:37
*/
@Configuration
@EnableSwagger
@EnableWebMvc
public class SwaggerConfig {
@Autowired
private SpringSwaggerConfig springSwaggerConfig;
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig)
{
this.springSwaggerConfig = springSwaggerConfig;
}
@Bean
public SwaggerSpringMvcPlugin customImplementation()
{
return new SwaggerSpringMvcPlugin(this.springSwaggerConfig)
.apiInfo(apiInfo())
.includePatterns(".*?");
}
private ApiInfo apiInfo()
{
ApiInfo apiInfo = new ApiInfo(
"Beamtech接口文档",
"功能接口一览",
"",
"damonli0724@Gmail.com",
"",
"");
return apiInfo;
}
}
最近下载更多
奋斗的小蚂蚁 LV16
10月29日
xiaoaitx LV8
1月1日
微信网友_7314762935078912 LV1
2024年12月27日
talete LV3
2024年11月13日
春宵一刻值千金 LV4
2024年10月9日
yangchengshuai LV16
2024年9月3日
799743530 LV11
2024年7月10日
微信网友_5986558820093952 LV4
2024年6月29日
ascacasc LV1
2024年6月28日
daisys LV2
2024年6月26日
最近浏览更多
vincemokea LV9
10月11日
limufu LV1
6月17日
微信网友_7513957431070720
5月17日
暂无贡献等级
zuobishe
4月27日
暂无贡献等级
chengguo123
4月2日
暂无贡献等级
哪里的完整版 LV8
3月1日
xiaoaitx LV8
1月1日
今天的我也很辛苦
2024年12月25日
暂无贡献等级
无念27149
2024年12月24日
暂无贡献等级
2602275348 LV12
2024年12月23日

