Commit 885c62cb by 李秋伟

Update README.md

parent 385d36ff
- # 介绍
# 介绍
protocol-starter提供http、dubbo等协议封装
# 特点
- 支持dubbo、http协议swagger文档
- 支持dubbo、http协议response异常统一处理
- 多语言处理
# 文档
- [dubbo-spring-boot](https://github.com/apache/dubbo-spring-boot-project/blob/master/README_CN.md)
- [swagger常用注解](https://www.jianshu.com/p/f30e0c646c63)
......@@ -17,24 +17,24 @@
# 开始
- 添加依赖
- Maven:需要在自己项目的pom.xml增加,以下配置。
**注意:前置条件需要依赖项目中需要设置matrix的parent**
```xml
<dependency>
<groupId>com.secoo.mall</groupId>
<artifactId>protocol-starter</artifactId>
</dependency>
```
# 示例
- springMvc
**注意:使用ApiController注解**
......@@ -62,7 +62,7 @@
- dubbo-swagger示例
- User
```
public class User implements Serializable {
......@@ -79,18 +79,18 @@
}
```
- UserDService
```
public interface UserDService {
Response<User> getById(Long id);
......
}
```
- UserProvider
```
@Api(value = "用户管理", tags = "用户管理")
@Service(version = "1.0.0")
......@@ -109,9 +109,9 @@
}
```
- UserService
```
@Service
public class UserService {
......@@ -125,9 +125,9 @@
......
}
```
- 访问方式
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment