电商微服务系统骨架 Dubbo版本
基于 Spring Boot(2.2.2.RELEASE) Dubbo(2.7.5)搭建的电商微服务系统骨架
可无限扩展,高并发,系统解耦
Requirements
Java8+Mysql5.6+RedisRocketMqZookeeper
Done
集成Spring Boot整合Mybatis, Mybatis Generator整合Dubbo整合Redis整合RocketMqMaven多模块整合Response统一输出,方便Controller层使用拆分多个系统blog, checkout, item, order, userGateWay接口签名
Todo
登录模块/OAuth
Application Port
Appwebdubbo
blog-app808320803checkout-app808420804item-app808520805order-app808620806user-app808720807gateway8090-
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
欢迎交流~