From ea9605b56e8b9c005548d103ed76753ab05352a6 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Sun, 25 Aug 2019 17:57:12 +0800 Subject: [PATCH] Update README.md --- spring-boot/spring-boot-swagger2/README.md | 29 ++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/spring-boot/spring-boot-swagger2/README.md b/spring-boot/spring-boot-swagger2/README.md index a5797d2..8ee56b1 100644 --- a/spring-boot/spring-boot-swagger2/README.md +++ b/spring-boot/spring-boot-swagger2/README.md @@ -1,17 +1,18 @@ # Spring Boot 集成 Swagger2 打造在线接口文档 - - + + + ## 一、概念综述 ### 1.1 SpringFox @@ -243,6 +244,7 @@ Swagger 为了最大程度防止对逻辑代码的侵入,基本都是依靠注 接口文档访问地址:http://localhost:8080/swagger-ui.html ,文档主界面如下:
+ ### 2.5 接口测试 Swagger-UI 除了提供接口可视化的功能外,还可以用于接口测试。点击对应接口的 `try it out` 按钮,然后输入对应的参数的值,最后点击下方的 `Execute` 按钮发送请求: @@ -250,6 +252,7 @@ Swagger-UI 除了提供接口可视化的功能外,还可以用于接口测试
+ POST 接口可以直接修改 Model 对应的 Json 数据 ,然后点击下方的 `Execute` 按钮发送请求: