電商微服務系統骨架 Dubbo版本
基於 Spring Boot(2.2.2.RELEASE) Dubbo(2.7.5)搭建的電商微服務系統骨架
可無限擴展,高併發,系統解耦
Requirements
- Java8+
- Mysql5.6+
- Redis
- RocketMq
- Zookeeper
Done
- 集成Spring Boot
- 整合Mybatis, Mybatis Generator
- 整合Dubbo
- 整合Redis
- 整合RocketMq
- Maven多模塊
- 整合Response統一輸出,方便Controller層使用
- 拆分多個系統blog, checkout, item, order, user
- GateWay接口簽名
Todo
- 登錄模塊/OAuth
Application Port
App | web | dubbo |
---|---|---|
blog-app | 8083 | 20803 |
checkout-app | 8084 | 20804 |
item-app | 8085 | 20805 |
order-app | 8086 | 20806 |
user-app | 8087 | 20807 |
gateway | 8090 | - |
Run Application
mvn clean install
java -jar blog-app/target/blog-app-1.0-SNAPSHOT.jar
java -jar user-app/target/user-app-1.0-SNAPSHOT.jar
java -jar item-app/target/item-app-1.0-SNAPSHOT.jar
java -jar order-app/target/order-app-1.0-SNAPSHOT.jar
java -jar gateway/target/gateway-1.0-SNAPSHOT.jar
Samples
GET request:
http://localhost:8090/order/get/15
POST request:
http://localhost:8090/order/add
body:
{
"consignee_id":1,
"order_item_list":[
{
"item_id":1,
"number":1
},
{
"item_id":2,
"number":2
}
]
}
License
The project is licensed under the BSD license.
項目地址
https://github.com/linkenpeng/springboot-dubbo
歡迎star,歡迎fork,歡迎合作
官方微信公衆號: 互聯網技術的祕密 (intecsec)
官方網站: www.intecsec.com
個人微信號:sindoc
歡迎交流~