Commit 885c62cb by 李秋伟

Update README.md

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