package cn.jbit.config; import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; 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.service.ApiInfo; import springfox.documentation.service.Contact; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket; import springfox.documentation.swagger2.annotations.EnableSwagger2; @Configuration @EnableSwagger2 @EnableKnife4j public class SwaggerConfig { //编写api文档汇总信息 private ApiInfo apiInfo(){ return new ApiInfoBuilder() //编写文档标题 .title("用户消息管理系统接口文档") //文档描述 .description("初次使用swagger的小demo") //联系人 .contact(new Contact("G2",null,"1623502245@qq.com")) //文档版本 .version("1.0") .build(); } @Bean public Docket createRestApi(){ //选择swagger2版本 return new Docket(DocumentationType.SWAGGER_2) //定义api文档汇总信息 .apiInfo(apiInfo()) .select() //指定生成api文档的包 .apis(RequestHandlerSelectors.basePackage("cn.jbit")) //指定所有路径 .paths(PathSelectors.any()) .build(); } }

15719908287 LV9
2024年6月19日
微信网友_6368711690080256 LV3
2023年2月28日
1203174100 LV1
2023年2月22日
282363 LV1
2022年10月4日
cao1992 LV24
2022年7月18日
yijie110 LV5
2022年4月18日
gy12345 LV6
2022年2月15日
taskmaster LV6
2022年1月2日
zcl02036716 LV17
2021年12月3日
123854216 LV5
2021年11月24日

微信网友_7255460400304128
4月22日
暂无贡献等级
2577288043
3月19日
暂无贡献等级
yy1124218793 LV9
2月8日
he0516
2024年12月21日
暂无贡献等级
15719908287 LV9
2024年6月19日
计科一班 LV7
2024年6月19日
Eliauk1121332121
2024年5月30日
暂无贡献等级
ma406805131 LV19
2024年5月11日
913600932
2024年4月28日
暂无贡献等级
内心向阳 LV4
2023年11月7日