news 2026/6/10 12:49:35

【JAVA项目】基于JAVA的网上商城系统

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【JAVA项目】基于JAVA的网上商城系统

一、项目介绍

本系统前端框架采用了比较流行的渐进式JavaScript框架Vue.js。使用Vue-Router实现动态路由,Ajax实现前后端通信,Element-plus组件库使页面快速成型。后端部分:采用SpringBoot作为开发框架,同时集成MyBatis、Redis、阿里云oss对象存储等相关技术。

学生成绩管理系统,可前后端分离

运行环境:idea

技术栈:springboot,vue,mybatis,redis,elementplus

jwt令牌技术,不登录无法访问内容页面,换浏览器也不可以

二、系统功能

分为管理员,学生系统

管理员可以对管理员信息,学生信息,班级信息的查询增加删除和修改,还可以查看成绩排名,还可以查看按照班级的成绩排名,对个人信息的修改,修改密码和退出登录

学生可以查看个人的成绩,本班级的平均分,对个人信息的修改,修改密码和退出登录

三、系统实现

登陆界面

四、实现代码

package com.example.demo.Controller; import com.example.demo.Service.CategoryService; import com.example.demo.entity.Pojo.Category; import com.example.demo.entity.Pojo.Flower; import com.example.demo.entity.Result.PageBean; import com.example.demo.entity.Result.Result; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @RestController @RequestMapping("/category") public class CategoryController { @Autowired private CategoryService categoryService; //获取列表 @GetMapping public Result<List<Category>> getMessage(){ List<Category> cs= categoryService.list(); return Result.success(cs); } //新增 @PostMapping public Result add(@RequestBody Category category){ categoryService.add(category); return Result.success(); } //获取详情 @GetMapping("/detail") public Result<Category> detail(Integer id){ Category c= categoryService.findById(id); return Result.success(c); } //更新商品分类 @PutMapping public Result update(@RequestBody Category category){ categoryService.update(category); return Result.success(); } // 删除 @DeleteMapping public Result delete(Integer id){ categoryService.delete(id); return Result.success(); } //分页查询 @GetMapping("/page") public Result<PageBean<Category>> page(Integer pageNum, Integer pageSize, String agriculturalName){ PageBean<Category> pageBean= categoryService.page(pageNum, pageSize, agriculturalName); return Result.success(pageBean); } //根据分类查询 @GetMapping("/flower") public Result<PageBean<Flower>> listByCategory(Integer pageNum, Integer pageSize, String categoryName){ PageBean<Flower> pageBean= categoryService.getByCategoryId(pageNum, pageSize, categoryName); return Result.success(pageBean); } }

联系方式绿泡泡公主号👇

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/10 12:07:39

明纬S-50-24开关电源电路技术解析与应用指南

明纬S-50-24开关电源电路技术解析与应用指南 【免费下载链接】明纬S-50-24开关电源电路图 明纬S-50-24开关电源电路图本仓库提供了一份名为“明纬S-50-24开关电源电路图.pdf”的资源文件下载 项目地址: https://gitcode.com/Open-source-documentation-tutorial/bd542 明…

作者头像 李华
网站建设 2026/6/10 14:09:28

代码阅读革命:如何用MultiHighlight实现三倍开发效率

代码阅读革命&#xff1a;如何用MultiHighlight实现三倍开发效率 【免费下载链接】MultiHighlight Jetbrains IDE plugin: highlight identifiers with custom colors &#x1f3a8;&#x1f4a1; 项目地址: https://gitcode.com/gh_mirrors/mu/MultiHighlight 你是否曾…

作者头像 李华
网站建设 2026/6/9 22:37:59

大模型开发资源合集 第二辑

2025最新大模型全套资料 文件大小: 6.9GB内容特色: 2025大模型前沿论文微调/部署实战代码&#xff0c;6.9GB一次打包适用人群: 算法工程师、研究员、LLM落地开发者核心价值: 紧跟最新技术&#xff0c;节省搜集时间&#xff0c;快速复现与二次创新下载链接: https://pan.quark.…

作者头像 李华
网站建设 2026/6/10 16:36:07

软件测试资源合集 第二辑

P4软件测试零基础入门&#xff08;就业班&#xff09;(1) 文件大小: 14.9GB内容特色: 零基础到就业&#xff0c;覆盖功能、自动化、性能测试全流程适用人群: 想转行/入行软件测试的零基础学习者核心价值: 项目实战面试辅导&#xff0c;快速对接测试岗位下载链接: https://pan.…

作者头像 李华
网站建设 2026/6/10 14:49:57

Flipper Zero NFC技术:5大实战应用场景全解析

Flipper Zero NFC技术&#xff1a;5大实战应用场景全解析 【免费下载链接】Flipper Playground (and dump) of stuff I make or modify for the Flipper Zero 项目地址: https://gitcode.com/GitHub_Trending/fl/Flipper 你是否想过&#xff0c;手中的Flipper Zero不仅仅…

作者头像 李华