pull/1/head
tanghc 5 years ago
parent fe0d348b41
commit 3925568bea
  1. 8
      changelog.md
  2. 64
      doc/docs/_sidebar.md
  3. 2
      doc/docs/files/10100_提供restful接口.md
  4. 2
      sop-auth/pom.xml
  5. 2
      sop-common/pom.xml
  6. 4
      sop-common/sop-gateway-common/pom.xml
  7. 4
      sop-common/sop-service-common/pom.xml
  8. 2
      sop-example/sop-book/sop-book-web/pom.xml
  9. 2
      sop-example/sop-easyopen/pom.xml
  10. 2
      sop-example/sop-springmvc/pom.xml
  11. 2
      sop-example/sop-story/sop-story-web/pom.xml
  12. 2
      sop-gateway/pom.xml
  13. 2
      sop-website/pom.xml

@ -1,5 +1,13 @@
# changelog # changelog
## 2.3.2
- 支持spring cloud gateway下restful接口调用
## 2.3.1
- 修复restful接口调用通配符问题
## 2.3.0 ## 2.3.0
- 支持请求restful接口(设置`sop.restful.enable=true`) - 支持请求restful接口(设置`sop.restful.enable=true`)

@ -1,34 +1,34 @@
* [首页](/?t=1570617107575) * [首页](/?t=1570680160879)
* 开发文档 * 开发文档
* [快速体验](files/10010_快速体验.md?t=1570617107578) * [快速体验](files/10010_快速体验.md?t=1570680160882)
* [项目接入到SOP](files/10011_项目接入到SOP.md?t=1570617107596) * [项目接入到SOP](files/10011_项目接入到SOP.md?t=1570680160897)
* [新增接口](files/10020_新增接口.md?t=1570617107596) * [新增接口](files/10020_新增接口.md?t=1570680160897)
* [开发流程](files/10021_开发流程.md?t=1570617107596) * [开发流程](files/10021_开发流程.md?t=1570680160897)
* [业务参数校验](files/10030_业务参数校验.md?t=1570617107596) * [业务参数校验](files/10030_业务参数校验.md?t=1570680160897)
* [错误处理](files/10040_错误处理.md?t=1570617107596) * [错误处理](files/10040_错误处理.md?t=1570680160897)
* [编写文档](files/10041_编写文档.md?t=1570617107596) * [编写文档](files/10041_编写文档.md?t=1570680160898)
* [接口交互详解](files/10050_接口交互详解.md?t=1570617107596) * [接口交互详解](files/10050_接口交互详解.md?t=1570680160898)
* [easyopen支持](files/10070_easyopen支持.md?t=1570617107597) * [easyopen支持](files/10070_easyopen支持.md?t=1570680160898)
* [使用签名校验工具](files/10080_使用签名校验工具.md?t=1570617107597) * [使用签名校验工具](files/10080_使用签名校验工具.md?t=1570680160898)
* [ISV管理](files/10085_ISV管理.md?t=1570617107597) * [ISV管理](files/10085_ISV管理.md?t=1570680160898)
* [自定义返回结果](files/10087_自定义返回结果.md?t=1570617107597) * [自定义返回结果](files/10087_自定义返回结果.md?t=1570680160898)
* [自定义过滤器](files/10088_自定义过滤器.md?t=1570617107597) * [自定义过滤器](files/10088_自定义过滤器.md?t=1570680160898)
* [路由授权](files/10090_路由授权.md?t=1570617107597) * [路由授权](files/10090_路由授权.md?t=1570680160898)
* [接口限流](files/10092_接口限流.md?t=1570617107597) * [接口限流](files/10092_接口限流.md?t=1570680160899)
* [监控日志](files/10093_监控日志.md?t=1570617107597) * [监控日志](files/10093_监控日志.md?t=1570680160899)
* [SDK开发](files/10095_SDK开发.md?t=1570617107597) * [SDK开发](files/10095_SDK开发.md?t=1570680160899)
* [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1570617107597) * [使用SpringCloudGateway](files/10096_使用SpringCloudGateway.md?t=1570680160899)
* [应用授权](files/10097_应用授权.md?t=1570617107598) * [应用授权](files/10097_应用授权.md?t=1570680160899)
* [提供restful接口](files/10100_提供restful接口.md?t=1570617107598) * [提供restful接口](files/10100_提供restful接口.md?t=1570680160899)
* [文件上传](files/10104_文件上传.md?t=1570617107598) * [文件上传](files/10104_文件上传.md?t=1570680160899)
* [配置Sleuth链路追踪](files/10109_配置Sleuth链路追踪.md?t=1570617107598) * [配置Sleuth链路追踪](files/10109_配置Sleuth链路追踪.md?t=1570680160899)
* [预发布灰度发布](files/10110_预发布灰度发布.md?t=1570617107598) * [预发布灰度发布](files/10110_预发布灰度发布.md?t=1570680160899)
* [动态修改请求参数](files/10111_动态修改请求参数.md?t=1570617107598) * [动态修改请求参数](files/10111_动态修改请求参数.md?t=1570680160899)
* [使用eureka](files/10112_使用eureka.md?t=1570617107598) * [使用eureka](files/10112_使用eureka.md?t=1570680160899)
* [扩展其它注册中心](files/10113_扩展其它注册中心.md?t=1570617107598) * [扩展其它注册中心](files/10113_扩展其它注册中心.md?t=1570680160900)
* 原理分析 * 原理分析
* [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1570617107598) * [原理分析之@ApiMapping](files/90010_原理分析之@ApiMapping.md?t=1570680160900)
* [原理分析之如何存储路由](files/90011_原理分析之如何存储路由.md?t=1570617107598) * [原理分析之如何存储路由](files/90011_原理分析之如何存储路由.md?t=1570680160900)
* [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1570617107598) * [原理分析之如何路由](files/90012_原理分析之如何路由.md?t=1570680160900)
* [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1570617107598) * [原理分析之文档归纳](files/90013_原理分析之文档归纳.md?t=1570680160900)
* [常见问题](files/90100_常见问题.md?t=1570617107598) * [常见问题](files/90100_常见问题.md?t=1570680160900)

@ -15,8 +15,6 @@ sop.restful.enable=true
请求格式为:`http://ip:port/rest/your_path`,其中`http://ip:port/rest/`为固定部分,后面跟微服务请求路径。 请求格式为:`http://ip:port/rest/your_path`,其中`http://ip:port/rest/`为固定部分,后面跟微服务请求路径。
> 如果想把`rest`部分改成其它名字,属性文件配置`sop.restful.path=/aaa`,则请求格式变为:`http://ip:port/aaa/your_path`
注意:为了确保各个微服务路径不冲突,必须保证类上方定义的`@RequestMapping`内容唯一,不与其它微服务重复。 注意:为了确保各个微服务路径不冲突,必须保证类上方定义的`@RequestMapping`内容唯一,不与其它微服务重复。
下面是一个微服务的接口例子 下面是一个微服务的接口例子

@ -26,7 +26,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-service-common</artifactId> <artifactId>sop-service-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<!-- sop相关配置 end--> <!-- sop相关配置 end-->

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-common</artifactId> <artifactId>sop-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>

@ -5,11 +5,11 @@
<parent> <parent>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-common</artifactId> <artifactId>sop-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<artifactId>sop-gateway-common</artifactId> <artifactId>sop-gateway-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>sop-gateway-common</name> <name>sop-gateway-common</name>

@ -6,11 +6,11 @@
<parent> <parent>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-common</artifactId> <artifactId>sop-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<artifactId>sop-service-common</artifactId> <artifactId>sop-service-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>sop-service-common</name> <name>sop-service-common</name>

@ -28,7 +28,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-service-common</artifactId> <artifactId>sop-service-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>

@ -29,7 +29,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-service-common</artifactId> <artifactId>sop-service-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<!-- 使用nacos注册中心 <!-- 使用nacos注册中心

@ -20,7 +20,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-service-common</artifactId> <artifactId>sop-service-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<!-- nacos --> <!-- nacos -->
<dependency> <dependency>

@ -28,7 +28,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-service-common</artifactId> <artifactId>sop-service-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>

@ -29,7 +29,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-gateway-common</artifactId> <artifactId>sop-gateway-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<!-- ↓↓↓ 使用spring cloud zuul ↓↓↓ --> <!-- ↓↓↓ 使用spring cloud zuul ↓↓↓ -->

@ -35,7 +35,7 @@
<dependency> <dependency>
<groupId>com.gitee.sop</groupId> <groupId>com.gitee.sop</groupId>
<artifactId>sop-gateway-common</artifactId> <artifactId>sop-gateway-common</artifactId>
<version>2.3.1-SNAPSHOT</version> <version>2.3.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>

Loading…
Cancel
Save