首页  

xxlrpc例子说明     所属分类 rpc 浏览量 876
相关知识点
netty nio 序列化 hessian  动态代码 rpc


启动注册中心 xxlrpc/xxl-rpc-admin 依赖mysql 数据库脚本 doc/db/tables_xxl_rpc.sql mysql -u root -p < xx.sql 可以导入工程运行 或者 直接 mvn 命令行启动 mvn spring-boot:run mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8080 关键配置 server.port=8080 server.servlet.context-path=/xxl-rpc-admin xxl.rpc.registry.login.username=admin xxl.rpc.registry.login.password=123456 http://127.0.0.1:8080/xxl-rpc-admin
启动服务提供者 2个实例 基于springboot 的例子 xxl-rpc-samples/xxl-rpc-sample-springboot/xxl-rpc-sample-springboot-server server.port=8081 xxl-rpc.remoting.port=7081 xxl-rpc.registry.xxlrpcadmin.address=http://localhost:8080/xxl-rpc-admin xxl-rpc.registry.xxlrpcadmin.env=default xxl-rpc.registry.xxlrpcadmin.address 配置注册中心 mvn spring-boot:run -Dspring-boot.run.arguments="--server.port=8081 --xxl-rpc.remoting.port=7081" mvn spring-boot:run -Dspring-boot.run.arguments="--server.port=8082 --xxl-rpc.remoting.port=7082"
启动服务消费者 基于springboot 的例子 xxl-rpc-samples/xxl-rpc-sample-springboot/xxl-rpc-sample-springboot-client server.port=8086 xxl-rpc.registry.xxlrpcadmin.address=http://localhost:8080/xxl-rpc-admin xxl-rpc.registry.xxlrpcadmin.env=default mvn spring-boot:run -Dspring-boot.run.arguments="--server.port=8086" http://127.0.0.1:8086/?name=tiger 负载均衡 ,调用2个服务端实例 ,会返回 服务端 ip和port
完整代码 https://gitee.com/dyyx/xxlrpc

上一篇     下一篇
写博客的好处

TCP三次握手与四次挥手

HTTPS连接过程及中间人攻击防范

xxl-job 使用简介

字符集编码基础知识

时间管理法则20条