首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    SpringBoot: 后台接口文档 - 基于Swagger3

    ,如下所示: [image-20210729113119350] 这说明Swagger默认的配置,会自动把@Controller控制器类添加到接口文档中 下面我们就自己配置一下,如下所示: import...; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors...; import springfox.documentation.oas.annotations.EnableOpenApi; import springfox.documentation.service.ApiInfo...; import springfox.documentation.service.Contact; import springfox.documentation.spi.DocumentationType...上面这些是Swagger2的注解,下面我们看下Swagger3和它的简单对比 [Swagger3注解] 接下来我们就用Swagger3的注解来写一个接口看下效果(其中穿插了Swagger2的注解) 控制器

    1.8K31
    领券