1 Star 0 Fork 49

mlz / al-cloud

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

平台简介

我个人比较懒 ,只是开源 提供交流思路和开阔眼界的作用。 如果你有什么好的想法或者建议 可以加我QQ: 469693055

部分功能可借鉴 我的若依分离版本 参考网站http://123.56.93.7:8086/login(admin/admin123) git地址 https://gitee.com/bujiDemon/base-com https://gitee.com/bujiDemon/base-vue

我坚信开发的技术本质并没有多大的差距,开发的思想才是每个人的核心。 希望交流的小伙伴,多尝试。并做总结,我自己的团队总结在http://123.56.93.7:8080/web/#/9?page_id=51 可以借鉴。 拒绝回答无脑问题。。。

jar包依赖问题 解决方案 参考下面文档 http://123.56.93.7:8080/web/#/9?page_id=1114

com.ruoyi     
├── ruoyi-ui              // 前端框架 [80]
├── ruoyi-gateway         // 网关模块 [8080]
├── ruoyi-auth            // 认证中心 [9200]
├── ruoyi-api             // 接口模块
│       └── ruoyi-api-system                          // 系统接口
├── ruoyi-common          // 通用模块
│       └── ruoyi-common-core                         // 核心模块
│       └── ruoyi-common-datascope                    // 权限范围
│       └── ruoyi-common-datasource                   // 多数据源
│       └── ruoyi-common-log                          // 日志记录
│       └── ruoyi-common-redis                        // 缓存服务
│       └── ruoyi-common-security                     // 安全模块
│       └── ruoyi-common-swagger                      // 系统接口
├── ruoyi-modules         // 业务模块
│       └── ruoyi-system                              // 系统模块 [9201]
│       └── ruoyi-gen                                 // 代码生成 [9202]
│       └── ruoyi-job                                 // 定时任务 [9203]
│       └── ruoyi-file                                // 文件服务 [9300]
├── ruoyi-visual          // 图形化管理模块
│       └── ruoyi-visual-monitor                      // 监控中心 [9100]
├──pom.xml                // 公共依赖

架构图

项目需要的 公共jar包 代码 https://gitee.com/bujiDemon/commonjar

若依微服务交流群

QQ群: 加入QQ群 加入QQ群 加入QQ群 点击按钮入群。

扩展内容 http://123.56.93.7:8080/web/#/9?page_id=871

1.集成maven-assembly-plugin插件 一键打包 更方便系统的迁移部署

2.优化接口文档工具springfox-swagger2 更美观

3.集成mybaits-plus 精简代码

4.实现自动更新 插入人 插入时间 更新人 更新时间

5.翻译注解的实现 通过设置注解 对应字典编码 将翻译后的值 设置到对应字段

6.优化微服务代码生成模块 多数据源切换问题

7.优化微服务 代码模板在线配置

8.错误码组件

优雅的抛出运行时错误异常,并由前端捕获

9.SQL脚本自动执行工具

通过在对应项目下目录放置特定规则的SQL脚本。项目重新启动后会自动执行未执行的SQL脚本 脚本命名规则 使用文档参考:http://123.56.93.7:8080/web/#/9?page_id=1213 在对应项目的yml中添加

  flyway:
    enabled: true
    baseline-on-migrate: true

10.提供了基于python的自动化测试

执行方法

1.  进入 ruoyi-case
2.  使用pycharm打开项目使用Terminal 输入 python3 -m venv venv 新建虚拟环境
3.  执行pip install -r requirements.txt 安装依赖库
4.  修改config.ymal文件中email文件配置收件人邮箱,授权码,发件人邮箱
5.  运行/test/test_api.py 文件

测试用例描述

11.集成xxl-job实现分布式 定时任务

  xxl-job-admin:
    image: xuxueli/xxl-job-admin:2.1.2
    restart: always
    container_name: xxl-job-admin
    environment:
      PARAMS: '-TZ=Asia/Shanghai --spring.datasource.url=jdbc:mysql://192.168.0.167:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root --spring.datasource.password=root'
    ports:
      - 7001:8080
    volumes:
      - ./data/applogs:/data/applogs

扩展项目启动方法: http://123.56.93.7:8080/web/#/page/edit/9/872 微服务本质为通过生态,实现服务和数据的综合治理。 新人学习将面临众多的,组件的安装学习,对于开发来说费力不讨好。会极大打击学习兴趣。 建议学习docker 采用容器化部署。微服务的基础环境路径在build-cloud/dockercompose/docker-compose-env.yml(未完整 是有执行顺序的)

1.启动命令

docker-compose up -d
启动的服务有 mysql redis nacos sentinel minio

2.初始化数据

像mysql中 依次建库 并执行sql脚本

3.替换项目配置

全局替换 nacos 和 sentinel的配置地址

4.修改对应nacos的配置

修改对应的 redis 和 mysql minio的配置

5.本地依次启动项目 验证功能可用

6.部署配置

(1)前端打包

将打包后的dist文件拷贝到 build-cloud/vue/prodist 路径下

(2)修改前端跨域

修改build-cloud/vue/default.conf文件中的 为gateway的地址

(3)项目打包 触发maven-assembly-plugin

打包好后 进入D:\work\rycloud240\build-cloud\target\build-assembly 拷贝到linux服务器 执行 docker-compose up -d 就可一键启动 所有前后台

MIT License Copyright (c) 2020 若依 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.

简介

感谢若依群主大佬的开源 ,本人在工作学习之余,也做了一些扩展 http://123.56.93.7:8080/web/#/9?page_id=871 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/ma-li-zheng/al-cloud.git
git@gitee.com:ma-li-zheng/al-cloud.git
ma-li-zheng
al-cloud
al-cloud
master

搜索帮助