若依前后端框架学习——新建模块(图文详解)

devtools/2024/10/22 8:00:35/

若依框架—新建模块

  • 一、项目地址
    • 1、后端启动
    • 2、前端启动
  • 二、生成代码
    • 1、添加菜单
    • 2、创建表结构
    • 3、生成代码
    • 2、编辑一些基本信息,然后点击提交
    • 3、生成代码,压缩包里有前端和后端代码
  • 三、配置后端模块
    • 1、新建模块
    • 2. 修改pom.xlm
      • 2.1 修改第一个pom.xml
    • 2.2 修改第二个pom.xml
      • 2.3 修改第三个pom.xml

一、项目地址

项目地址:若依/RuoYi-Vue

1、后端启动

在这里插入图片描述
在这里插入图片描述

2、前端启动

使用vscode工具打开项目,在vue.config.js中修改后端服务连接和启动端口,随后执行npm命令启动。

# 安装依赖
npm install# 本地开发 启动项目
npm run dev

在这里插入图片描述
在这里插入图片描述

二、生成代码

1、添加菜单

打开菜单管理,选择新增菜单
在这里插入图片描述

2、创建表结构

DROP TABLE IF EXISTS `bishe_detail`;
CREATE TABLE `bishe_detail`  (`comment_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号',`user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',`company_id` int(11) NULL DEFAULT NULL COMMENT '企业id',`comment_grade` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '学校名称',`comment_position` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '毕设名称',`comment_result` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '级别(本、专)',`comment_feel` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '服务类型',`comment_diff` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '接单时间',`comment_source` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '答辩时间',`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',PRIMARY KEY (`comment_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '毕设详情表' ROW_FORMAT = DYNAMIC;

3、生成代码

打开代码生成菜单,选择导入,导入需要的表
在这里插入图片描述
在这里插入图片描述

2、编辑一些基本信息,然后点击提交

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3、生成代码,压缩包里有前端和后端代码

在这里插入图片描述
解压之后
在这里插入图片描述

三、配置后端模块

1、新建模块

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

2. 修改pom.xlm

2.1 修改第一个pom.xml

在这里插入图片描述
打开pom.xml,在依赖声明中添加以下代码

	<!-- 管理模块  2024.05.22 添加--><dependency><groupId>com.ruoyi</groupId><artifactId>ruoyi-manage</artifactId><version>${ruoyi.version}</version></dependency>

在这里插入图片描述
添加后的代码

<!-- 依赖声明 --><dependencyManagement><dependencies><!-- SpringBoot的依赖配置--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>2.5.15</version><type>pom</type><scope>import</scope></dependency><!-- 阿里数据库连接池 --><dependency><groupId>com.alibaba</groupId><artifactId>druid-spring-boot-starter</artifactId><version>${druid.version}</version></dependency><!-- 解析客户端操作系统、浏览器等 --><dependency><groupId>eu.bitwalker</groupId><artifactId>UserAgentUtils</artifactId><version>${bitwalker.version}</version></dependency><!-- pagehelper 分页插件 --><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>${pagehelper.boot.version}</version></dependency><!-- 获取系统信息 --><dependency><groupId>com.github.oshi</groupId><artifactId>oshi-core</artifactId><version>${oshi.version}</version></dependency><!-- Swagger3依赖 --><dependency><groupId>io.springfox</groupId><artifactId>springfox-boot-starter</artifactId><version>${swagger.version}</version><exclusions><exclusion><groupId>io.swagger</groupId><artifactId>swagger-models</artifactId></exclusion></exclusions></dependency><!-- io常用工具类 --><dependency><groupId>commons-io</groupId><artifactId>commons-io</artifactId><version>${commons.io.version}</version></dependency><!-- excel工具 --><dependency><groupId>org.apache.poi</groupId><artifactId>poi-ooxml</artifactId><version>${poi.version}</version></dependency><!-- velocity代码生成使用模板 --><dependency><groupId>org.apache.velocity</groupId><artifactId>velocity-engine-core</artifactId><version>${velocity.version}</version></dependency><!-- 阿里JSON解析器 --><dependency><groupId>com.alibaba.fastjson2</groupId><artifactId>fastjson2</artifactId><version>${fastjson.version}</version></dependency><!-- Token生成与解析--><dependency><groupId>io.jsonwebtoken</groupId><artifactId>jjwt</artifactId><version>${jwt.version}</version></dependency><!-- 验证码 --><dependency><groupId>pro.fessional</groupId><artifactId>kaptcha</artifactId><version>${kaptcha.version}</version></dependency><!-- 定时任务--><dependency><groupId>com.jobview</groupId><artifactId>jobview-quartz</artifactId><version>${jobview.version}</version></dependency><!-- 代码生成--><dependency><groupId>com.jobview</groupId><artifactId>jobview-generator</artifactId><version>${jobview.version}</version></dependency><!-- 核心模块--><dependency><groupId>com.jobview</groupId><artifactId>jobview-framework</artifactId><version>${jobview.version}</version></dependency><!-- 系统模块--><dependency><groupId>com.jobview</groupId><artifactId>jobview-system</artifactId><version>${jobview.version}</version></dependency><!-- 通用工具--><dependency><groupId>com.jobview</groupId><artifactId>jobview-common</artifactId><version>${jobview.version}</version></dependency><!-- 无偿献血工具--><dependency><groupId>com.jobview</groupId><artifactId>jobview-myinfo</artifactId><version>${jobview.version}</version></dependency><!-- 毕设管理模块--><dependency><groupId>com.jobview</groupId><artifactId>bishe-manage</artifactId><version>${jobview.version}</version></dependency></dependencies></dependencyManagement>

2.2 修改第二个pom.xml

在这里插入图片描述

2.3 修改第三个pom.xml

在这里插入图片描述
添加后:
在这里插入图片描述
将原来文件夹中的controller删掉,在admin中新建一个文件夹controller
在这里插入图片描述

结束。

技术支持:QQ:1571228974


http://www.ppmy.cn/devtools/125764.html

相关文章

Yolov11与Yolov8在西红柿识别数据集上对比

Ultralytics 最新发布的 YOLOv11 相较于其上一代产品 YOLOv8&#xff0c;虽然没有发生革命性的变化&#xff0c;但仍有一些显著的改进&#xff08;值得注意的是&#xff0c;YOLOv9 和 YOLOv10 并非由 Ultralytics 开发&#xff09;。其中&#xff0c;最引人注目的变化包括&…

三、账号密码存储

使用Playfers存储 Unity本地持久化类Playerprefs使用详解 - PlaneZhong - 博客园 (cnblogs.com) 一、登陆界面切换 1、登陆界面的脚本&#xff08;机制类脚本&#xff09; 在这个UI上挂载一个脚本LoginWnd 先声明一下这个脚本&#xff0c;拖拽 2、在登录模块中调用 这里的l…

【RPC】—Thrift协议 VS Protobuf

Thrift协议 & VS Protobuf ⭐⭐⭐⭐⭐⭐ Github主页&#x1f449;https://github.com/A-BigTree 笔记仓库&#x1f449;https://github.com/A-BigTree/tree-learning-notes 个人主页&#x1f449;https://www.abigtree.top ⭐⭐⭐⭐⭐⭐ 文章目录 Thrift协议 & VS Pro…

SpringBoot人事系统:打造企业内部管理的核心竞争力

摘要 随着信息技术在管理上越来越深入而广泛的应用&#xff0c;作为学校以及一些培训机构&#xff0c;都在用信息化战术来部署线上学习以及线上考试&#xff0c;可以与线下的考试有机的结合在一起&#xff0c;实现基于vue的人事系统在技术上已成熟。本文介绍了基于vue的人事系统…

算法-字符串笔记

双指针 反转字符串 344. 反转字符串 - 力扣&#xff08;LeetCode&#xff09; public class Solution {/*** 反转字符串的方法* param s 需要被反转的字符数组*/public void reverseString(char[] s) {// 初始化左右指针&#xff0c;分别指向字符串的首尾int left 0;int rig…

HTML实现飘动广告效果

上述HTML代码创建了一个简单的网页&#xff0c;其中包含一个可以在页面内自动移动的小方块&#xff08;div元素&#xff09;&#xff0c;并且当鼠标悬停在该方块上时&#xff0c;动画会暂停&#xff1b;当鼠标移开时&#xff0c;动画会继续。以下是代码的详细分析&#xff1a; …

智能EDA小白从0开始 —— DAY10 Yosys

Yosys 概述 工作原理 Yosys的工作原理深入来讲&#xff0c;是一个复杂但有序的硬件设计自动化流程&#xff0c;其核心在于将高级硬件描述语言&#xff08;HDL&#xff09;如Verilog或VHDL编写的代码&#xff0c;通过一系列精细的步骤转换为门级网表。这一流程首先涉及对HDL代…

uniapp-小程序开发0-1笔记大全

uniapp官网&#xff1a; https://uniapp.dcloud.net.cn/tutorial/syntax-js.html uniapp插件市场&#xff1a; https://ext.dcloud.net.cn/ uviewui类库&#xff1a; https://www.uviewui.com/ 柱状、扇形、仪表盘库&#xff1a; https://www.ucharts.cn/v2/#/ CSS样式&…