1 Star 9 Fork 16

enilu / web-flash-spring-cloud

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

web-flash(spring cloud版)

该项目在web-flash项目的基础上,将其拆分为微服务版本

  • 该项目在web-flash基础上将其后端拆分成基于Spring Cloud的微服务系统
  • 该项目不包含前端项目代码,可以直接服用web-flash的前端项目(flash-vue-admin,flash-vue-h5)
  • 使用Eureka作为注册中心
  • 使用基于git仓库的Config配置中心
  • 使用集成了Ribbon(负载均衡和Hystrix(熔断,降级)的OpenFeign负责服务之间的调用

选用技术

  • Spring Cloud
  • Spring Cloud Config
  • Eureka
  • Ribbon
  • Hystrix
  • Open Feign

模块

  • eureka-server 服务注册中心
  • flash-common 基础公共模块
  • flash-config-server 配置中心(基于git仓库)
  • flash-manage 后台管理api
  • flash-message 消息服务
  • flash-schedule 定时任务
  • flash-vue-admin (后台管理前端项目,该模块已删除,请直接使用[web-flash项目的flash-vue-admin模块]作为后台管理页面项目)
  • flash-vue-h5 (用户端前端项目,该模块已删除,请直接使用[web-flash项目的flash-vue-h5模块]作为用户端h5页面项目)

使用

  • 克隆本项目
  • 导入idea或者eclipse
  • 创建数据库:webflashsc
       CREATE DATABASE IF NOT EXISTS webflashsc DEFAULT CHARSET utf8 COLLATE utf8_general_ci; 
       CREATE USER 'webflashsc'@'%' IDENTIFIED BY 'webflash190602@ABC';
       GRANT ALL privileges ON webflashsc.* TO 'webflashsc'@'%';
       flush privileges;
       ```    
  • flash-manage模块启动后会自动创建数据库表和初始化数据
  • 确保开发工具下载了lombok插件
  • 按照顺序启动一下各个微服务
    • eureka-server
    • flash-config-server:启动之前修改配置文件中配置文件使用的git仓库地址,账号,密码,分支(默认为main)等信息
    • flash-message
    • flash-schedule
    • flash-manage
  • 进入flash-vue-admin目录
  • 后台管理运行效果图: admin

在线文档

交流

MIT License Copyright (c) 2019 enilu.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

web-flash的微服务版本 expand collapse
Java
MIT
Cancel

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/enilu/web-flash-spring-cloud.git
git@gitee.com:enilu/web-flash-spring-cloud.git
enilu
web-flash-spring-cloud
web-flash-spring-cloud
main

Search