This commit is contained in:
tanghc
2019-10-09 18:31:59 +08:00
parent 0cc8c0b991
commit 78c93578d9
13 changed files with 47 additions and 45 deletions

View File

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

View File

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