最代码广告位
筱进GG的gravatar头像
筱进GG2017-10-22 18:42:04

dubbo+spring boot+mybatis+redis分布式框架项目实例demo

dubbo-spring-boot-mybatis-redis搭建的分布式服务框架demo;

没有dubbo zookeeper redis的安装,请不要下载;

项目安装:

1、首先安装zookeeper+redis;

2、dearbinge-data-provider服务提供者项目的资源文件dubbo-spring-mybatis.xml下配置zookeeper地址;

3、dearbinge-openapi服务消费者的资源文件dubbo-services.xml下配置zookeeper地址,然后在application.properties下配置redis地址;

4、dearbinge-security服务消费者的资源文件dubbo-services.xml下配置zookeeper地址;

5、建立数据库文件cloudplate,创建t_security表单元素

-- Table structure for t_security
DROP TABLE IF EXISTSt_security;
CREATE TABLEt_security(f_SecurityKeyvarchar(50) NOT NULL DEFAULT '',f_SecurityValuevarchar(255) DEFAULT NULL,f_MerchantIdvarchar(255) DEFAULT NULL,f_Tagvarchar(10) DEFAULT NULL,f_IsDeleteint(11) DEFAULT NULL,f_CreateUservarchar(50) DEFAULT NULL,f_CreateTimedate DEFAULT NULL,f_UpdateUservarchar(50) DEFAULT NULL,f_UpdateTimedate DEFAULT NULL,f_Remarkvarchar(100) DEFAULT NULL,PRIMARY KEY (f_SecurityKey),KEYFK_MERCHANTID(f_MerchantId)) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- Records of t_security

INSERT INTOt_securityVALUES ('0eca835373ca4853aec2f8e9d9367104', '14318527b13840c2a4af63feasdxz6e', '323202320202201509080001', '1', '1', null, null, null, null, '测试');

6、启动dearbinge-data-provider项目下的mainloader注册服务提供者;

7、启动dearbinge-openapi项目下的App注册服务消费者;

按图来运行:

启动mainloader

dubbo+spring boot+mybatis+redis分布式框架项目实例demo启动app:

dubbo+spring boot+mybatis+redis分布式框架项目实例demo

访问session;

dubbo+spring boot+mybatis+redis分布式框架项目实例demo

启动dubbo-admin可以看到dubbo服务service;

dubbo+spring boot+mybatis+redis分布式框架项目实例demo

安装zookeeper可以参考我的blog:

http://mmtradeonline.com/blog/3578919923469312.htm

安装dubbo-admin可以参考:

http://mmtradeonline.com/blog/3591958400584704.htm

这样项目的demo就完美运行了!

注:一点dubbo  zookeeper  redis不会请勿下载;maven不会的也不要下载!


打赏

已有1人打赏

最代码官方的gravatar头像

文件名:dubbo-spring-boot-mybatis-redis-master.zip,文件大小:105.298K下载
  • /
      • /dubbo-spring-boot-mybatis-redis-master
        • /dubbo-spring-boot-mybatis-redis-master/.project
          • /dubbo-spring-boot-mybatis-redis-master/.settings
            • /dubbo-spring-boot-mybatis-redis-master/.settings/org.eclipse.core.resources.prefs
            • /dubbo-spring-boot-mybatis-redis-master/.settings/org.eclipse.m2e.core.prefs
          • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test
            • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/.classpath
            • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/.gitignore
            • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/.project
              • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/.settings
                • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/.settings/org.eclipse.core.resources.prefs
                • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/.settings/org.eclipse.jdt.core.prefs
              • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/src
                  • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/src/main
                      • /dubbo-spring-boot-mybatis-redis-master/dearbinge-client-test/src/main/java
          • /dubbo-spring-boot-mybatis-redis-master/dearbinge-data-api
              • /dubbo-spring-boot-mybatis-redis-master/dearbinge-data-api/src
                  • /dubbo-spring-boot-mybatis-redis-master/dearbinge-data-api/src/main
顶部客服微信二维码底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友

页面底部区域 foot.htm