spring-boot 集成spring-cloud、dubbo、mybatis、redis、quartz、solr等示例

spring-boot 集成spring-cloud、dubbo、mybatis、redis、quartz、solr等示例

Java Web开发框架

访问GitHub主页

共11Star

详细介绍

----------------spring cloud (eureka + 配置服务器 + gateway)+ dubbo ---------------
1.安装zookeeper,端口:2181
2.安装rabbitmq,端口:5672,用户名:guest,密码:guest
3.启动zookeeper
cd D:\work\zookeeper-3.4.8\bin
d:
zkServer.cmd
4.启动rabbitmq
cd D:\work\RabbitMQ\rabbitmq_server-3.6.12\sbin
d:
rabbitmq-server

项目启动顺序
1.spring-boot-eureka
2.spring-boot-config
3.spring-boot-gateway
4.spring-boot-dubbo-service
5.spring-boot-dubbo-custom
6.spring-boot-dubbo-app

----------------测试---------------
#控制台地址
http://localhost:8761/

#刷新配置
(POST) http://localhost:9080/bus/refresh?destination=spring-boot-dubbo-app

#测试地址
http://localhost:9085/spring-boot-dubbo-app/hello/add
http://localhost:9085/spring-boot-dubbo-app/hello/properties

#查看动态配置
http://localhost:9080/spring-boot-dubbo-app/dev
{spring-boot-dubbo-app} 项目
{dev} 环境

#查看路由情况
http://localhost:9085/routes

#健康检查
http://localhost:9085/health

#动态监控
http://localhost:9085/hystrix.stream


其他项目
1.spring-boot-data
集成kafka、mongo、Redis,并提供简单的数据读取方式

2.spring-boot-data-rest
Restful 风格访问数据库
数据库脚本见

3.spring-boot-framework
基础工具

4.spring-boot-mybatis
集成 mybatis,依赖spring-boot-framework
数据库脚本见resources/sql_data.sql
mybatis配置生产器

5.spring-boot-oauth
安全验证

6.spring-boot-quartz
集成quartz,前台界面未开发完
数据库脚本
见quartz_mysql.sql
---测试地址---
新增定时任务
http://localhost:8089/cronTask/addOrUpdate?type=Add&code=100&taskName=helloTask&clazz=com.feiniu.quartz.task.HelloTask
新增定时计划
http://localhost:8089/simplePlan/addOrUpdate?type=Add&planName=helloPlan&jobCode=100&repeatCount=-1&interval=5

7.spring-boot-session
通过Redis服务器,实现多服务器session同步

8.spring-boot-solr
集成solr