ICode9

精准搜索请尝试: 精确搜索
  • Swagger配置类2022-05-11 17:32:58

    Swagger配置类 package com.guoba.servicebase.config; import com.google.common.base.Predicates; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBu

  • Swagger的基本使用2022-05-08 12:31:26

    Swagger简介和使用 使用Swagger你只需要按照它的规范去定义接口及接口相关的信息,再通过Swagger衍生出来的一系列项目和工具,就可以做到生成各种格式的接口文档,以及在线接口调试页面等等。 使用Swagger你只需要按照它的规范去定义接口及接口相关的信息,再通过Swagger衍生出来的一系列

  • SpringBoot集成Swagger2022-05-05 18:02:28

    Swagger API文档 前后端分离: 前端就负责展示数据,数据从哪来?后端提供的接口中得到 前端自己有一个叫伪造后端数据,json,这使得前端工程不需要后端仍可以跑起来 前后端的交互就是通过api 前后端相对独立,低耦合 前后端可以部署在不同的服务器上 好处: 之前有一个专门提供

  • spring boot使用swagger的ApiOperation注解2022-05-04 08:34:02

    背景: 如果要使用@ApiOperation注解,需要引入swagger,而不是引入OpenAPI。   在父工程的pom.xml里添加swagger的依赖: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version

  • 千峰商城-springboot项目搭建-07-Swagger2022-05-01 03:00:06

    前后端分离开发,后端需要编写接口说明文档,会耗费比较多的时间。 swagger是一个用于生成服务器接口说明的规范性文档,并且能够对接口进行测试的工具。     1.在api子工程的pom中添加依赖 Swagger2、Swagger UI   <dependency> <groupId>io.springfox</groupI

  • SpringCloud Gateway 整合Springfox/SwaggerUI3 之后调用某一个服务的接口时,请求路径不会加上对应的服务名问题2022-04-29 17:34:02

    目录写在前边问题描述解决方案效果我的swagger配置 写在前边 当你看到这篇文章时,默认已经整合好了Springcloud/gateway/springfox(swaggerui3), 仅仅是在进行测试服务时出现问题。 问题描述 通过swagger-ui页面访问时会忽略服务名直接访问swagger映射出的接口,但是我们是通过网关

  • MyBatis-Plus的代码生成器的使用2022-04-16 21:00:06

    1、引入相关依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.5.1</version></dependency><dependency> <groupId>com.baomidou</gr

  • 使用Swagger 3.0.0启动报错及解决方式2022-04-09 18:32:39

    在使用Swagger2引入以下依赖后报错 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>3.0.0</version> </dependency> <dependency>

  • RESTful API --Knife4j2022-04-08 17:33:53

    即使用swagger后今天又发现了一个基于swagger进行进一步封装的后端api Knife4j,其风格将swagger与postman完美结合,话不多说贴代码: 注意: 由于Knife4j是基于swagger来实现的RESTful api接口所以在引用Knife4j时需要将swagger引用的pom注释掉,否则在引用@EnableSwagger2WebMvc时将会引

  • 使用swagger或者knife4j在2.0.X或3.0.X版本上传文件域不出现的问题,请求格式自动默认为body的问题2022-04-07 12:02:46

    解决方法 其中最关键的是: 参数 paramType="query" @ApiImplicitParam(name = "file", value = "文件流对象,接收数组格式", required = true, dataType = "__File",paramType = "query") @PostMapping("/importData") @Respons

  • 配置Swagger2022-03-20 22:35:48

    导入Swagger2依赖 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId>

  • 狂神说Swagger2022-03-08 10:00:32

    配置环境 application.properties spring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER pom.xml <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>3.0.0</version>

  • Springboot 使用 Wrapper ——在线文档和测试接口2022-03-08 02:00:34

    Wrapper 可以生成一个在线的文档,并且可以在里面方便的进行Rest风格测试 配置 maven <!--swagger--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <scope>

  • 03_Swagger2的使用与前后端协议2022-02-28 21:32:23

    文章目录 1. Swagger1.1 Swagger介绍1.2 使用步骤1.3 常用注解 2. 前后端协议 1. Swagger 1.1 Swagger介绍 前后端分离开发模式中,api文档是最好的沟通方式。 Swagger 是一个规范和完整的框架,用于生成、描述、调用和可视化 RESTful 风格的 Web 服务, 而前面发的PostMan更

  • Swagger配置2022-02-27 13:03:07

    <!-- swagger --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency>

  • The following method did not exist: org.springframework.plugin.core.PluginRegistry.getPluginFor2022-02-25 17:06:36

    场景描述 springboot 集成 springfox的 swagger 3 功能。 环境 IDE: 2021.3 spring boot: 2.1.7 springfox: 3.0.0 问题 启动项目时,异常:The following method did not exist: org.springframework.plugin.core.PluginRegistry.getPluginFor……。 Error starting Applicatio

  • springboot集成swagger3出现如下错误:Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception2022-02-20 23:02:17

    如果你是小白,这套资料可以帮你成为大牛,如果你有丰富开发经验,这套资料可以帮你突破瓶颈 2022web全套视频教程前端架构 H5 vue node 小程序 视频+资料+代码+面试题. 原因: 这是因为Springfox使用的路径匹配是基于AntPathMatcher的,而Spring Boot 2.6.X使用的是PathPatternMatch

  • Swagger2的使用2022-02-20 10:00:02

    1.首先需要在对应的服务中进行导包: <!--引入swagger支持--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <!-- https://mvnrepo

  • 创建java工程操作kafka2022-02-15 16:01:09

    导入pom 点击查看代码 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.or

  • swagger 的应用2022-02-09 15:36:24

    无论是前端还是后端开发,都或多或少地被接口文档折磨过。前端经常抱怨后端给的接口文档与实际情况不一致。后端又觉得编写及维护接口文档会耗费不少精力,经常来不及更新,于是 swagger 应运而生 给 springboot 项目加入 swagger 步骤: 1. 引入依赖 <dependency> <groupId>io.s

  • springboot集成swagger2022-02-08 22:01:40

    springboot集成swagger 1.添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency>

  • SwaggerAPI管理工具2022-01-29 14:33:15

    Swagger有几个重要特性 代码侵入式注解 遵循YAML文档格式 非常适合三端(PC、iOS及Android)的API管理,尤其适合前后端完全分离的架构模式。 减少没有必要的文档,符合敏捷开发理念 功能强大 作用 接口的文档在线自动生成 功能测试 优点 1. 大大减少前后端的沟通 2. 方便查找和测试接口

  • swagger2的使用java集成2022-01-25 15:07:21

    1.pom文件添加对应的依赖 io.springfox springfox-swagger2 2.9.2 io.springfox springfox-swagger-ui 2.9.2 2.启动类开启swagger2 @SpringBootApplication @EnableSwagger2 public class DemoApplication { public static void main(String[] args) { Spri

  • 2022-01-24 Swagger-API文档2022-01-24 18:04:19

    Swagger-API文档 Swagger配置导包 编写配置类配置类资源类yaml 注解@Api@ApiOperation@ApiModel@ApiModelProperty@ApiImplicitParams@ApiResponses@ApiIgnore swagger-ui3以下版本3及以上版本 参考文章 Swagger 配置 导包 3.0.0以下版本maven导入依赖: <!-- https://mvn

  • 【简记】SpringBoot禁用Swagger2022-01-24 12:35:11

    楔子 Swagger 是 Java Web 开发中常用的接口文档生成类库,在开发和前后端联调时使用它来模拟接口调用能提高开发效率。但是,在生产环境可能并不需要它,一个原因是启用它会延长程序启动时间(动态解析代码中的注解来生成文档),另一个是安全问题(过不了漏洞扫描,需要鉴权访问或禁用掉) 本文的

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有