This commit is contained in:
tanghc
2019-10-08 16:05:32 +08:00
parent 41386f6996
commit 3871132b55
19 changed files with 65 additions and 61 deletions

View File

@@ -13,7 +13,7 @@ SOP对easyopen项目提供了很好的支持如果您的服务端使用了eas
<dependency>
<groupId>com.gitee.sop</groupId>
<artifactId>sop-service-common</artifactId>
<version>2.2.0-SNAPSHOT</version>
<version>2.3.0-SNAPSHOT</version>
</dependency>
<!-- 使用nacos注册中心

View File

@@ -1,14 +1,14 @@
# 传统web开发
SOP既可以作为网关服务开发又可以作为传统的webapp服务开发传统web开发意思是像普通的web开发那样提供restful接口没有签名校验功能
默认情况下SOP只提供开放接口也可以同时提供restful接口即程序提供一部分的开放接口同时提供一部分restful接口
本篇介绍如何使用SOP进行传统web服务开发即对接前端应用H5、小程序、App
默认情况下提供restful功能是关闭的开启方式如下
- 打开sop-gateway配置文件新增一行配置
```properties
# 开启传统的webapp服务开发
sop.web-model.enable=true
# 提供restful接口
sop.restful.enable=true
```
- 前端app请求网关