5 Star 21 Fork 11

空灵隐侠 / open_springcloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

服务器

阿里服务器传送门:https://www.aliyun.com/sale-season/2020/procurement-new-members?userCode=ssqvib5m

介绍

1.该项目为springcloud 分布式微服务 模板架构项目,已经集成事物管理器, 致力于提供微服务开发的一站式解决方案。 此项目包含开发分布式应用微服务的必需组件,方便开发者通过 Spring Cloud 编程模型轻松使用这些组件来开发分布式应用服务。

2.参与贡献 为 open_springcloud 贡献代码: 请联系作者 加入开发者管理团队

作者邮箱:hedankly@foxmail.com

邮件内容:开发者gitee地址或github 地址,码云开发者个人空间完整地址。

软件架构

1、使用技术:

spring boot :2.1.4.RELEASE
springcloud :Greenwich.SR1
mybatis-plus:3.0.7.1
redis:5.0.5  开发 ( 3.0.503)
mysql : 5.5
jdk: 1.8
txlcn: 5.0.2.RELEASE (分布式事务解决组件)
zipkin: 2.1.1.RELEASE (链路追踪 ,服务监控)
eureka:2.1.1.RELEASE (注册中心)

2、项目目录结构:

common-eureka-server:注册中心服务

common-fegin-server:各服务fegin 调用业务接口api 

common-gateway-server: 网关服务 (通过网关映射不同服务)
    所有静态文件由网关做转发统一处理

common-txlcn-manager-server: 引入txlcn 事务管理器 服务

txlcn事物组件地址

common-zipkin-server: 链路追踪服务

common-item-config:服务模块公共配置

common-item-constant:服务模块常量

common-item-util:服务模块集成工具包
db: 数据库文件:

      1.common-txlcn-magager-server.sql 事务管理器服务数据库
      2.project-bourse-data-kline.sql 金融数据服务数据库
      3.project-bourse-data-kline 生成八字 服务 数据库
        
img:说明文档引入图片

doc: 项目文档等资料存放目录

log:日志目录

page:各服务管理后台页面

-----------------------各独立服务项目模块--------------------------------------------------

  • project-bourse-data-kline:金融数据服务 (已完成接口服务)

    文档地址:https://www.showdoc.cc/422262238104889 访问密码:23456

  • project-open-birthdate-item:生成八字 服务 (待完成...)

  • project-platform-item: 权限管理快速平台 服务(待完成...)

4、项目登陆权限校验 (基于拦截器)(权限平台)

使用技术:redis+JWT 

具体方法: 
    1。用户登陆后生成 jwt token 信息,每次 生成 token 信息都不一样
    2。存储到redis 中,设置超时
    3。用户登陆成功后,返回前端token 信息
    4。前端请求接口 时 把 token 放入 heder 头中
    5。每次请求,通过拦截器校验 token 信息
    6。登陆状态
       未登录:拦截器中获取不到 token  信息 则用户未登陆
       单设备登录:请求头中获取的 token信息 与 redis 中存储的不一致 则用户已在其他地方登陆
       登陆超时:redis 中 获取不到用户的 token 信息,则用户登陆超时

Image text

5、项目启动顺序

   common-eureka-server --> common-txlcn-manager-server
                                       |
                                       V 
   common-gateway-server <--  common-zipkin-server
           |
           V
   project-platform-item  .... 等其他各服务模块

安装教程

  • 单个服务安装教程:

    1、搭建服务器环境

     1:到 `https://oneinstack.com/` 网站自定义安装包 (数据库,redis ,jdk ,nginx)
     2:服务器上执行从上面网站复制的 命令:

    wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 1 --jdk_option 2 --db_option 4 --dbinstallmethod 1 --dbrootpwd oneinstack --redis --reboot

    2、创建数据库,

    3、服务器上创建项目目录 文件

     1:静态资源目录:/home/project/staticFile
     2:配置文件目录:/home/project/config
     3: 日志目录:/home/project/log
     4:启动脚本:
         把doc 文件下的shell 脚本 放入 /home/project/ 目录下
         修改脚本名字为:charge.sh
         修改启动脚本为可执行:chmod 777  xxx.sh
         修改脚本文件里启动项目名字: 为 xxx.jar

Image text

4、把服务打包成 jar 包 修改名字 为 xxx.jar  上传到服务器 /home/project/ 目录下 
     启动项目 : ./charge.sh  restart 
     查看实时日志: tail -f ./log/catalina.out 
       
5、上传静态资源 前端文件 到服务器  /home/project/staticFile/ 目录下
    1、该目录下如果创建后台管理页面目录  admin(或其他名字)  则把静态页面放到 admin 目录下
        访问路径为:http://ip:端口/admin/index.html
    2、如果index.html 在  /home/project/staticFile/ 目录下
        则项目访问路径为:http://ip:端口/index.html
    3、可在 /home/project/staticFile/ 下创建多个项目的静态资源文件目录,
        访问路径为:http://ip:端口/静态资源文件目录/index.html
6、使用 nginx 转发项目 ,在nginx 里配置 https  访问

使用说明

网站:

参与贡献

备注:

gitee: https://gitee.com/kongling_admin/open_springcloud.git

github: https://github.com/konglingyinxia/open_springcloud.git

MIT License Copyright (c) 2019 空灵隐侠 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.

简介

该项目为springcloud 分布式微服务 模板架构项目,已经集成事物管理器, 致力于提供微服务开发的一站式解决方案。 此项目包含开发分布式应用微服务的必需组件,方便开发者通过 Spring Cloud 编程模型轻松使用这些组件来开发分布式应用服务 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/kongling_admin/open_springcloud.git
git@gitee.com:kongling_admin/open_springcloud.git
kongling_admin
open_springcloud
open_springcloud
master

搜索帮助