当前位置:网站首页>ssm+mysql二手交易网站(论文+源码获取链接)
ssm+mysql二手交易网站(论文+源码获取链接)
2022-07-01 05:30:00 【azhou的代码园】
二手交易平台的设计主要是为了解决社会上那些对物品主人没有使用价值却对社会有着剩余价值的一些物品的处理问题。从原主人的角度分析,对于这类物品,直接扔掉是对社会资源的一种浪费,也会增加社会垃圾处理问题的负担。如果不考虑其他因素,送出则会损害自身利益。从后用者的角度分析,一件物美价廉的商品是十分可要的,尤其是对于学生、打工人这一类无产者或者低产者来说,二手商品的存在就很有价值。在互联网日益发达的现在,一个二手交易平台的出现就有着很高的价值。
本文研究的是一个基于SpringMVC+MySQL的二手交易平台 。系统是采用B/S架构模式,以Java语言做开发基础,主要使用SpringMvC+Spring+MyBatis+HTML搭建整个系统,数据库使用的是MySQL 5.5.15版本,服务器为Tomcat7,开发软件为IDEA。辅助技术中使用分布式文件系统FastDFS来存储上传的图片,Spring的Security安全框架来实现用户的安全登录,Apache的Maven来构建整个项目。本系统总体分为前端和后台两个模块,前端使用HTML+CSS来设计页面,封装JavaScript的angularJS来实现前端的功能。主要有登录注册页面、商品浏览页面、支付购买页面等等。后端使用Java语言的ssm框架来完成对数据库的查询和对前端请求的响应。
本系统按角色可划分成卖家,买家,管理员和游客。因为用户既可以在买商品的同时卖出自己的物品,所以卖家和买家可统一成用户。用户可浏览、购买、收藏和卖出商品等等。游客指的是未登录或者未注册的用户,仅仅可以浏览商品。管理员可以对用户和商品审核,负责维护整个系统。
package com.hsu.controller;
import com.hsu.constant.UserContant;
import com.hsu.entity.Admin;
import com.hsu.entity.User;
import com.hsu.service.Adminservice;
import com.hsu.service.UserService;
import com.hsu.vo.PageResult;
import com.hsu.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author Yuchen
* @create 2021-04-22 22:23
*/
@RestController
@RequestMapping("/admin")
public class AdminController {
@Autowired
private Adminservice adminservice;
@Autowired
private UserService userService;
@RequestMapping("login")
public Result login(@RequestBody Admin admin){
return adminservice.login(admin);
}
@RequestMapping("/UpdateByStatus")
public Result UpdateByStatus(String username) {
try{
userService.UpdateByStatus(username);
return new Result(true,UserContant.UPDATE_IS_SUCCESS);
}catch (Exception e){
e.printStackTrace();
return new Result(false,UserContant.UPDATE_IS_NOT_SUCCESS);
}
}
@RequestMapping("/findOne")
public User findOne(String username){
return userService.findOne(username);
}
@RequestMapping("/search")
public PageResult search(int page, int rows, @RequestBody User user){
return userService.search(page,rows,user);
}
@RequestMapping("/serachAllUser")
public PageResult serachAllUser(int page, int rows, @RequestBody User user){
return userService.serachAllUser(page,rows,user);
}
}







边栏推荐
- Youqitong [vip] v3.7.2022.0106 official January 22 Edition
- 轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
- How to create a progress bar that changes color according to progress
- Some common commands of podman
- Floweable source code annotation (40) class delegation
- 液压滑环的特点讲解
- Spanner 论文小结
- [SRS] use of Vhost isolated stream: push / pull Stream Address
- Lock free concurrency of JUC (leguan lock)
- [Yugong series] February 2022 Net architecture class 005 ABP vNext Net core web application getting started configuration
猜你喜欢

JDBC常见面试题

Ebpf cilium practice (2) - underlying network observability

el-cascader回显失败;el-cascader回显不出来

Understand several related problems in JVM - JVM memory layout, class loading mechanism, garbage collection

複制寶貝提示材質不能為空,如何解决?
![[excel] column operation, which performs specific column for data in a cell, such as text division by comma, colon, space, etc](/img/c8/e3e31ad9ef214d97228cb501dd752f.jpg)
[excel] column operation, which performs specific column for data in a cell, such as text division by comma, colon, space, etc

Simple implementation of database connection pool

mysql 将毫秒数转为时间字符串

Precautions for use of conductive slip ring

CockroachDB 分布式事务源码分析之 TxnCoordSender
随机推荐
Using nocalhost to develop microservice application on rainbow
Simple read / write verification of qdatastream
Global and Chinese market of 3D CAD 2022-2028: Research Report on technology, participants, trends, market size and share
Series of improving enterprise product delivery efficiency (1) -- one click installation and upgrade of enterprise applications
Thread process foundation of JUC
Programmers dig "holes" to get rich: if they find a loophole, they will be rewarded 12.72 million yuan
Actual combat: basic use of Redux
Flowable source code comment (XXXIX) task listener
[excel] column operation, which performs specific column for data in a cell, such as text division by comma, colon, space, etc
Tar command
Rainbond结合NeuVector实践容器安全管理
How to start learning editing? Detailed analysis of zero basis
el-cascader回显失败;el-cascader回显不出来
Flutter 实现每次进来界面都刷新数据
Unity项目心得总结
C# wpf 使用DockPanel实现截屏框
HDU - 1069 Monkey and Banana(DP+LIS)
Practice of combining rook CEPH and rainbow, a cloud native storage solution
Deeply understand the underlying implementation principle of countdownlatch in concurrent programming
了解 JVM 中几个相关问题 — JVM 内存布局、类加载机制、垃圾回收