当前位置:   article > 正文

若依框架教程_若依框架前端框架

若依框架前端框架

 心血来潮,写一篇关于ruoyi【若依】框架从0-1的教程。说一下使用感受吧,如果有一个架构师或者老手已经把架构改造完成也能指导你如何快速上手,那么你在后面的增删改查系列开发起来会如鱼得水。如果没有人改造,也没有人教你,可能会某个问题会处理很久,比如使用自定义的用户表登录,使用自定义的权限验证,比如使用自定义的密码加密,这三个问题对于新手来说都是致命的。

整体使用下来,唯一觉得快的部分就是它能生成前端的代码,然后在这个基础上修改就比较快。但是缺点也是致命的,封装的后台返回接口的字段居然都不一样,有的list会返回rows,有的返回data,说实话,就这一个缺点就能说明,那些人很垃圾。

简介

RuoYi是一个后台管理系统,基于经典技术组合(Spring Boot、Apache Shiro、MyBatis、Thymeleaf)主要目的让开发者注重专注业务,降低技术难度,从而节省人力成本,缩短项目周期,提高软件安全质量。

官网首页

https://www.ruoyi.vip/

官网文档

https://doc.ruoyi.vip/ruoyi/

 在线演示地址

https://vue.ruoyi.vip/

教程开始

1、安装依赖环境

名称备注
idealjava开发工具
JDK1.8java开发环境
Mysql8mysql数据库
redis实时缓存数据库
maven3项目构建工具
navicat数据库图形化管理工具
nodeJsnpm构建工具,用来开发编译运行前端vue项目

  1. # JAVA开发环境搭建从0-1
  2. # 包含了ideal, jdk, mysql, maven, redis, navicat等软件的下载及安装
  3. https://blog.csdn.net/renkai721/article/details/126939604

2、下载源码

这里下载前后端分离的版本。版本介绍如下:

名称备注
RuoYi源码下载bootstrap+jquery+springboot2
RuoYi-Vue前后端分离版element+vue2+springboot2
RuoYi-Cloud微服务版未使用,不做评价
RuoYi-App移动端版未使用,不做评价

如果你会jquery+bootstrap不会vue就选择第一个版本。如果你会vue或者两者都会就下载vue的版本。 这里给新手一个建议,在你修改代码的时候最好先提交代码到git上一份,后面改动比较大,可能想找回之前的一个版本比较方便。不然的话,很容易进入到进退两难的困境。

下载后的文件夹如下

 文件夹结构描述

 

 3、导入SQL脚本

打开navicat工具,连接上数据库,然后创建一个数据库,名称叫【ry-vue】,然后通过工具把RuoYi-Vue-master\sql文件夹下的【ry_20231130.sql】和【quartz.sql】两个SQL脚本都导入进去。

4、修改配置文件

打开ruoyi-admin模块下的application-druid.yml文件,修改连接数据库的账号信息。

 打开ruoyi-admin模块下的application.yml文件,修改连接redis的账号信息。

 5、启动后台项目

看后台启动日志,如果成功了会看到启动成功。

6、启动VUE前端

  1. # 进入项目目录
  2. cd ruoyi-ui
  3. # 安装依赖
  4. npm install
  5. # 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
  6. npm install --registry=https://registry.npmmirror.com
  7. # 启动服务
  8. npm run dev
  9. ```
  10. # 默认账号密码admin/admin123
  11. 浏览器访问 http://localhost:80
  12. ## 发布
  13. ```bash
  14. # 构建测试环境
  15. npm run build:stage
  16. # 构建生产环境
  17. npm run build:prod

7、启动效果图

8、技术交流

结束

-----华丽的分割线,以下是凑字数,大家不用花时间看,快去改代码-----

-----华丽的分割线,以下是凑字数,大家不用花时间看,快去改代码-----

-----华丽的分割线,以下是凑字数,大家不用花时间看,快去改代码-----

  1. package cn.renkai721.bean.vo;
  2. import lombok.extern.slf4j.Slf4j;
  3. @Slf4j
  4. public class MakeUpTheWordCount {
  5. private String make_up_the_word_count_column_999999999_1;
  6. private String make_up_the_word_count_column_999999999_2;
  7. private String make_up_the_word_count_column_999999999_3;
  8. private String make_up_the_word_count_column_999999999_4;
  9. private String make_up_the_word_count_column_999999999_5;
  10. private String make_up_the_word_count_column_999999999_6;
  11. private String make_up_the_word_count_column_999999999_7;
  12. private String make_up_the_word_count_column_999999999_8;
  13. private String make_up_the_word_count_column_999999999_9;
  14. private String make_up_the_word_count_column_999999999_10;
  15. private String make_up_the_word_count_column_999999999_11;
  16. private String make_up_the_word_count_column_999999999_12;
  17. private String make_up_the_word_count_column_999999999_13;
  18. private String make_up_the_word_count_column_999999999_14;
  19. private String make_up_the_word_count_column_999999999_15;
  20. private String make_up_the_word_count_column_999999999_16;
  21. private String make_up_the_word_count_column_999999999_17;
  22. private String make_up_the_word_count_column_999999999_18;
  23. private String make_up_the_word_count_column_999999999_19;
  24. private String make_up_the_word_count_column_999999999_20;
  25. public String getMake_up_the_word_count_column_999999999_1() {
  26. return make_up_the_word_count_column_999999999_1;
  27. }
  28. public void setMake_up_the_word_count_column_999999999_1(String make_up_the_word_count_column_999999999_1) {
  29. this.make_up_the_word_count_column_999999999_1 = make_up_the_word_count_column_999999999_1;
  30. }
  31. public String getMake_up_the_word_count_column_999999999_2() {
  32. return make_up_the_word_count_column_999999999_2;
  33. }
  34. public void setMake_up_the_word_count_column_999999999_2(String make_up_the_word_count_column_999999999_2) {
  35. this.make_up_the_word_count_column_999999999_2 = make_up_the_word_count_column_999999999_2;
  36. }
  37. public String getMake_up_the_word_count_column_999999999_3() {
  38. return make_up_the_word_count_column_999999999_3;
  39. }
  40. public void setMake_up_the_word_count_column_999999999_3(String make_up_the_word_count_column_999999999_3) {
  41. this.make_up_the_word_count_column_999999999_3 = make_up_the_word_count_column_999999999_3;
  42. }
  43. public String getMake_up_the_word_count_column_999999999_4() {
  44. return make_up_the_word_count_column_999999999_4;
  45. }
  46. public void setMake_up_the_word_count_column_999999999_4(String make_up_the_word_count_column_999999999_4) {
  47. this.make_up_the_word_count_column_999999999_4 = make_up_the_word_count_column_999999999_4;
  48. }
  49. public String getMake_up_the_word_count_column_999999999_5() {
  50. return make_up_the_word_count_column_999999999_5;
  51. }
  52. public void setMake_up_the_word_count_column_999999999_5(String make_up_the_word_count_column_999999999_5) {
  53. this.make_up_the_word_count_column_999999999_5 = make_up_the_word_count_column_999999999_5;
  54. }
  55. public String getMake_up_the_word_count_column_999999999_6() {
  56. return make_up_the_word_count_column_999999999_6;
  57. }
  58. public void setMake_up_the_word_count_column_999999999_6(String make_up_the_word_count_column_999999999_6) {
  59. this.make_up_the_word_count_column_999999999_6 = make_up_the_word_count_column_999999999_6;
  60. }
  61. public String getMake_up_the_word_count_column_999999999_7() {
  62. return make_up_the_word_count_column_999999999_7;
  63. }
  64. public void setMake_up_the_word_count_column_999999999_7(String make_up_the_word_count_column_999999999_7) {
  65. this.make_up_the_word_count_column_999999999_7 = make_up_the_word_count_column_999999999_7;
  66. }
  67. public String getMake_up_the_word_count_column_999999999_8() {
  68. return make_up_the_word_count_column_999999999_8;
  69. }
  70. public void setMake_up_the_word_count_column_999999999_8(String make_up_the_word_count_column_999999999_8) {
  71. this.make_up_the_word_count_column_999999999_8 = make_up_the_word_count_column_999999999_8;
  72. }
  73. public String getMake_up_the_word_count_column_999999999_9() {
  74. return make_up_the_word_count_column_999999999_9;
  75. }
  76. public void setMake_up_the_word_count_column_999999999_9(String make_up_the_word_count_column_999999999_9) {
  77. this.make_up_the_word_count_column_999999999_9 = make_up_the_word_count_column_999999999_9;
  78. }
  79. public String getMake_up_the_word_count_column_999999999_10() {
  80. return make_up_the_word_count_column_999999999_10;
  81. }
  82. public void setMake_up_the_word_count_column_999999999_10(String make_up_the_word_count_column_999999999_10) {
  83. this.make_up_the_word_count_column_999999999_10 = make_up_the_word_count_column_999999999_10;
  84. }
  85. public String getMake_up_the_word_count_column_999999999_11() {
  86. return make_up_the_word_count_column_999999999_11;
  87. }
  88. public void setMake_up_the_word_count_column_999999999_11(String make_up_the_word_count_column_999999999_11) {
  89. this.make_up_the_word_count_column_999999999_11 = make_up_the_word_count_column_999999999_11;
  90. }
  91. public String getMake_up_the_word_count_column_999999999_12() {
  92. return make_up_the_word_count_column_999999999_12;
  93. }
  94. public void setMake_up_the_word_count_column_999999999_12(String make_up_the_word_count_column_999999999_12) {
  95. this.make_up_the_word_count_column_999999999_12 = make_up_the_word_count_column_999999999_12;
  96. }
  97. public String getMake_up_the_word_count_column_999999999_13() {
  98. return make_up_the_word_count_column_999999999_13;
  99. }
  100. public void setMake_up_the_word_count_column_999999999_13(String make_up_the_word_count_column_999999999_13) {
  101. this.make_up_the_word_count_column_999999999_13 = make_up_the_word_count_column_999999999_13;
  102. }
  103. public String getMake_up_the_word_count_column_999999999_14() {
  104. return make_up_the_word_count_column_999999999_14;
  105. }
  106. public void setMake_up_the_word_count_column_999999999_14(String make_up_the_word_count_column_999999999_14) {
  107. this.make_up_the_word_count_column_999999999_14 = make_up_the_word_count_column_999999999_14;
  108. }
  109. public String getMake_up_the_word_count_column_999999999_15() {
  110. return make_up_the_word_count_column_999999999_15;
  111. }
  112. public void setMake_up_the_word_count_column_999999999_15(String make_up_the_word_count_column_999999999_15) {
  113. this.make_up_the_word_count_column_999999999_15 = make_up_the_word_count_column_999999999_15;
  114. }
  115. public String getMake_up_the_word_count_column_999999999_16() {
  116. return make_up_the_word_count_column_999999999_16;
  117. }
  118. public void setMake_up_the_word_count_column_999999999_16(String make_up_the_word_count_column_999999999_16) {
  119. this.make_up_the_word_count_column_999999999_16 = make_up_the_word_count_column_999999999_16;
  120. }
  121. public String getMake_up_the_word_count_column_999999999_17() {
  122. return make_up_the_word_count_column_999999999_17;
  123. }
  124. public void setMake_up_the_word_count_column_999999999_17(String make_up_the_word_count_column_999999999_17) {
  125. this.make_up_the_word_count_column_999999999_17 = make_up_the_word_count_column_999999999_17;
  126. }
  127. public String getMake_up_the_word_count_column_999999999_18() {
  128. return make_up_the_word_count_column_999999999_18;
  129. }
  130. public void setMake_up_the_word_count_column_999999999_18(String make_up_the_word_count_column_999999999_18) {
  131. this.make_up_the_word_count_column_999999999_18 = make_up_the_word_count_column_999999999_18;
  132. }
  133. public String getMake_up_the_word_count_column_999999999_19() {
  134. return make_up_the_word_count_column_999999999_19;
  135. }
  136. public void setMake_up_the_word_count_column_999999999_19(String make_up_the_word_count_column_999999999_19) {
  137. this.make_up_the_word_count_column_999999999_19 = make_up_the_word_count_column_999999999_19;
  138. }
  139. public String getMake_up_the_word_count_column_999999999_20() {
  140. return make_up_the_word_count_column_999999999_20;
  141. }
  142. public void setMake_up_the_word_count_column_999999999_20(String make_up_the_word_count_column_999999999_20) {
  143. this.make_up_the_word_count_column_999999999_20 = make_up_the_word_count_column_999999999_20;
  144. }
  145. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/405658
推荐阅读
相关标签
  

闽ICP备14008679号