[Computer Graduation Project] 261 Campus Second-hand Trading Platform

1. System screenshots (you can chat privately if you need a demonstration video)

Summary

With the rapid development of information Internet shopping, most companies are creating their own e-commerce platforms and shopping management systems. This article introduces the entire development process of the campus second-hand trading platform. By analyzing the needs of enterprises for campus second-hand trading platforms, a computer-managed campus second-hand trading platform program was created. The article introduces the system analysis part of the campus second-hand trading platform, including feasibility analysis, etc. The system design part mainly introduces the system function design and database design.

This campus second-hand trading platform has three roles: administrator, seller and user. Administrator functions include personal center, user management, seller management, category management, purchase information management, second-hand product management, my order management, product donation management, donation information management, message board management, and system management. Seller functions include personal center, purchase information management, second-hand product management, my order management, product donation management, and donation information management. User functions include personal center, purchase information, second-hand goods, my order management, product donation, and message feedback. Therefore it has certain practicality.

This site is a B/S mode system, using the SSM framework as the development technology and the MYSQL database design and development to fully ensure the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, making the management of the campus second-hand trading platform systematic and standardized.

Keywords: campus second-hand trading platform; SSM framework; MYSQL database

Table of contents

Campus second-hand trading platform

1System overview

1.1 Research background

1.2 Research purpose

1.3 System design ideas

2Related technologies

2.1 MYSQL database

2.2 B/S structure

2.3 Introduction to SSM framework

3 System analysis

3.1 Feasibility analysis

3.1.1 Technical feasibility

3.1.2 Economic feasibility

3.1.3 Operational feasibility

3.2 System performance analysis

3.2.1 System security

3.2.2 Data integrity

3.3 System interface analysis

3.4 System process and logic

4 System outline design

4.1 Overview

4.2 System structure

4.3. Database design

4.3.1 Database entities

4.3.2 Database design table

5 system detailed implementation

5.1 Implementation of the administrator module

5.1.1 Message board management

5.1.2 Purchasing information management

5.1.3 Second-hand product management

5.2 Implementation of seller module

5.2.1 Posting second-hand products

5.2.2 Personal information

5.3 Implementation of user modules

5.3.1 Purchasing information

5.3.2 Second-hand goods

5.3.3 Donation of goods

6 system test

6.1 Concept and meaning

6.2 Features

6.3 Importance

6.4 Test methods

6.5 Functional testing

6.6 Usability testing

6.7 Performance testing

6.8 Test analysis

6.9 Test result analysis

in conclusion

Thank you

references

1System overview

1.1 Research background

Nowadays, the Internet is developing rapidly and the network is spread all over the world. News released through the Internet can be quickly and conveniently spread to every corner of the world, and the information that can be spread on the Internet is also very wide, such as text, pictures, sounds, videos, etc. Therefore, these various benefits have made the Internet the main way for information dissemination. All kinds of information in society are trying their best to spread through the Internet, and the Internet has an increasing impact on society.

With the development of computer technology and the gradual popularization of computer networks, the Internet has become an important place for people to find information. The 21st century is the age of information, so the exchange and circulation of information are particularly important. Therefore, developing a suitable campus second-hand trading platform has become an inevitable step for enterprises. Developing a suitable campus second-hand trading platform can facilitate management of the campus second-hand trading platform, improve information management efficiency and query efficiency, and help provide better services to users.

1.2 Research purpose

With the rapid development of Internet technology and the advent of the Internet era, network information will also change today's society. All walks of life are also slowly converging towards standardization and networking in terms of daily business operations and management. The degree of informatization of the campus second-hand trading platform is reflected in the application of the Internet and information technology to operation and management, and the replacement of traditional manual work with modern tools. Undoubtedly, the use of network information management makes information management more advanced, more efficient, more scientific, and information exchange faster.

If companies still use the previous method of only selling things offline, they are already very outdated, which will lead to low efficiency. Moreover, over time, the accumulated data information is not easy to save, which will cause many problems for query, update and maintenance. There are also great hidden dangers in data handover. If electronic storage is adopted, it will bring great improvements and bring great convenience to users' inquiries. Therefore, it is urgent to design a campus second-hand trading platform, which can improve the display level of enterprises in information technology.

1. 3 System design ideas

A successful website should clearly define the purpose of building the website, determine the functions of the website, determine the scale of the website, investment costs, and conduct necessary market analysis, etc. Only detailed planning can avoid many problems that occur during website construction and ensure that website construction can proceed smoothly. At the same time, a large-scale computer website system must have a correct design guiding ideology, and form a complete network architecture through reasonable selection of data structure, network structure, operating system and development environment, in order to give full play to the advantages of computer information management. Based on the actual needs of netizens in real life, this system is designed according to the following principles.

  1. Effectiveness: In fact, effectiveness here includes two aspects: usefulness and usability. Usefulness refers to the potential of a site to meet user needs, while usability refers to the ability to achieve specific goals through the operation of the site. It can be seen that a site is not a good site if it does not function properly or is poorly designed. A usable site should be highly efficient, easy to learn, and satisfying in achieving user goals without making mistakes.
  2. High reliability: A practical website must be reliable at the same time. This design can ensure the reliability and fault tolerance of the website through reasonable and advanced network design and optimized selection of software and hardware.
  3. High security: In the design, various security measures provided by network software and hardware will be fully utilized to ensure that users share resources and fully consider the requirements for disaster recovery, backup, and recovery of system and data resources. Provides powerful database backup tools for the system. The security of critical data can be guaranteed. Operation permission levels, set different roles to ensure the operation permissions of each step, can be set by the administrator.
  4. Advancedness: Adopting the most advanced development technology in the world, using JSP development technology, and MYSQL as the website back-end database. The use of these technologies reduces future system operating costs and improves system stability and ease of maintenance.
  5. Adopt standard technology: All designs of this website follow current international standards to improve the openness of the system.
  6. Balance between appearance and technology: The system adopts a Web-style interface design, which is friendly, beautiful, easy to use, easy to learn and use. The key issue in website design is the balance between appearance and technology. A website that looks bad is annoying. The site may work well but fail to motivate users. On the contrary, if the appearance is very expressive but the technology is limited, users will be very disappointed. A clear and continuous relationship needs to be determined between appearance and technology, that is, appearance is related to the intention of the site, and different types of websites are treated differently.

2Related technologies

2. 1  MYSQL database

MySQL is a true multi-user, multi-threaded SQL database server. It is a relational database management system based on SQL client/server model. Its advantages include powerful functions, simple use, convenient management, high security and reliability, fast running speed, multi-threading, cross-platform, complete networking, and stability. etc., which is very suitable for the development of database backends for Web sites or other application software. In addition, users can write programs that access MySQL databases in many languages. As one of the products of the open source movement, the MySQL relational database management system is becoming more and more popular and its application scope is becoming wider and wider. Speed ​​and ease of use make MySQL particularly suitable for the development of database backends for Web sites or application software.

MYSQL database has the following characteristics:

1. Compilers used and tested in C and C++ to ensure source code portability and flexibility.

2. Supports multiple operating systems: AIX, FreeBSD, HP-UX, Linux and Mac OS, Novell's Netware, OpenBSD systems, OS/2, Solaris, Windows, etc.

3. Provides APIs for different programming languages. Programming languages ​​such as C, C++, Python, Java, Perl, PHP, Eiffel, Ruby and Tcl.

4. And the CPU resources used to support multi-threading.

5. The algorithm optimizes query SQL and effectively improves search speed.

6. Clients and servers on the network can be used to program any independent programming environment. There are also Chinese, GB2312, BIG5, Japanese writing, general funds, used to support multiple languages, and can be embedded in data tables and other software shift_jis access columns Can be used as a name.

7. TCP/IP, ODBC and JDBC databases and provide connections to others.

8. Management of management tools, control and optimization of database operations.

9. Tens of millions of records can be stored in a large database.

2. 2  B/S structure

B/S architecture is a software system development architecture based on the Internet system. It is a software system structure that is widely used in software system development today. Nowadays, the B/S architecture has been widely used, breaking the C/S structure and providing good support for software systems based on network structures. The B/S architecture gradually develops and updates with the development of computer network technology. With the further development of the Internet, most management systems are required not only to be used on one computer, but also to be able to operate and use the system on other computers connected to the Internet. In this context, software system design methods based on B/S architecture have been increasingly used, and the basic parts are constantly being updated.

The B/S architecture is used by the browser in the operating system. It is not a form software system and does not need to be installed on the computer using the system. The operating mode of the B/S architecture is to deploy the developed software system on the remote server. After the software system is deployed, the deployed software system can be accessed on any computer connected to the Internet. The B/S architecture brings great convenience to users of the management system.

In the B/S (Browser/Server, browser/server structure) system with a three-tier architecture, users can make requests to many servers distributed on the network through the browser. The B/S system greatly simplifies the workload of the client. Only a small amount of client running software needs to be installed and configured on the client. The server will take on a lot of work. Access to the database and execution of the application will be done by the server. Finish.

The B/S architecture continues to mature, mainly using WWW browser technology, combined with a variety of browser scripting languages, using a general browser to achieve powerful functions that are originally complex and proprietary software, and saving development costs. It is a kind of New software architecture. The B/S system includes: presentation logic layer, control logic layer, and data presentation layer. The three layers are relatively independent but interrelated.

2. 3  Introduction to SSM Framework

SSM framework is the abbreviation of Spring+Spring MVC+MyBatis. This is the current mainstream Java EE enterprise-level framework after SSH and is suitable for building various large-scale enterprise-level application systems.

1.Spring Introduction

Spring is an open source framework. Spring is a lightweight Java development framework that emerged in 2003. It is derived from some of the concepts and prototypes expounded by Rod Johnson in his book Expert One-On-One J2EE Development and Design. It was created to solve the complexities of enterprise application development. Spring uses basic JavaBeans to accomplish things that were previously only possible with EJBs. However, Spring's uses are not limited to server-side development. Any Java application can benefit from Spring in terms of simplicity, testability, and loose coupling. Simply put, Spring is a lightweight Inversion of Control (IoC) and Aspect-Oriented (AOP) container framework.

A. What is Inversion of Control (IOC)?

IOC: Inversion of control is also called dependency injection. The factory pattern is used to hand over the object to the container for management. You only need to configure the corresponding bean in the spring configuration file and set the relevant attributes to let the spring container generate instance objects and management objects of the class. When the spring container starts, spring will initialize all the beans you configure in the configuration file, and then when you need to call it, it will assign the beans it has initialized to the class you need to call these beans (assuming The class name is A), and the allocation method is to call the setter method of A to inject, without the need for you to new these beans in A.

B. What is aspect-oriented (AOP)?

First of all, it needs to be explained that AOP is just a feature of Spring. It is a programming idea like OOP, not a certain technology. AOP can be said to be a supplement and improvement to OOP. OOP introduces concepts such as encapsulation, inheritance, and polymorphism to establish an object hierarchy to simulate a collection of common behaviors. When we need to introduce public behavior to dispersed objects, OOP is powerless. In other words, OOP allows you to define relationships from top to bottom, but it is not suitable for defining relationships from left to right. For example, the logging function. Logging code tends to be spread horizontally across all object hierarchies, having nothing to do with the core functionality of the objects it's spread to. In OOP design, it leads to a large amount of code duplication, which is not conducive to the reuse of various modules. Encapsulate the cross-cutting business logic in the program (such as security, logs, transactions, etc.) into an aspect, and then inject it into the target object (specific business logic).

The technology to implement AOP is mainly divided into two categories: one is to use dynamic proxy technology to decorate the message by intercepting the message to replace the execution of the original object behavior; the other is to use static weaving to introduce A specific syntax creates "aspects" so that the compiler can weave in code about the "aspects" during compilation.

2.Introduction to Spring MVC

Spring MVC is a follow-up product of Spring Framework and has been integrated into Spring Web Flow. The Spring features it natively supports make development very simple and standardized. Spring MVC separates the roles of controllers, model objects, dispatchers, and handler objects, making them easier to customize.

3.Introduction to MyBatis

MyBatis was originally an open source project iBatis of Apache. In 2010, the project was moved from Apache Software Foundation to Google Code and renamed MyBatis. MyBatis is a Java-based persistence layer framework. The persistence layer framework provided by iBATIS includes SQL Maps and Data Access Objects (DAO). MyBatis eliminates almost all JDBC code and manual setting of parameters and retrieval of result sets. MyBatis uses simple XML or annotations for configuration and original mapping, mapping interfaces and Java POJOs (Plain Old Java Objects, ordinary Java objects) into records in the database. It can be understood that MyBatis is a framework used to help you manage data additions, deletions, modifications and queries.

3 System analysis

3.1 Feasibility analysis

Through preliminary investigation and analysis of the purpose of implementing the second-hand trading platform on this campus, we propose feasible plans and demonstrate them one by one. Here we mainly analyze from the aspects of technical feasibility, economic feasibility, operational feasibility and so on.

3.1.1 Technical feasibility

This campus second-hand trading platform uses JAVA as the development language and Spring Boot framework. It is a B/S architecture system based on the WEB platform.

(1) Java provides stable performance, excellent upgradeability, faster development, easier management, new languages ​​and services. The entire system helps users do most of the trivial and unimportant tasks.

(2) The development of systems based on the B/S model has become increasingly mature.

(3) As we all know, Java is an object-oriented development language. Program developers can easily use some known solutions on the Eclipse platform.    

Therefore, the campus second-hand trading platform has high feasibility in terms of development technology, and the developers have mastered certain development technologies, so the development technology of this system is feasible.

3.1.2 Economic feasibility

The software used by this campus second-hand trading platform is all open source, which can save a lot of energy and resources and reduce development costs. At the same time, the computer configuration requirements are also extremely low, and even obsolete computers can meet the needs. Therefore, this system is completely economically feasible, so it is very economically feasible.

3.1.3 Operational feasibility

The interface of this campus second-hand trading platform is simple and easy to operate. Users can access and operate it as long as they have used computers. This system has the characteristics of easy operation, easy management and good interactivity. It is very simple in operation, so it has high feasibility in operation.

To sum up, the development goals of this system have been clearly defined, and it is highly feasible in terms of technology, economy and operation. It also requires low investment, perfect functions and convenient management, so the development of the system is completely feasible.

3.2 System performance analysis

3.2.1 System security

This campus second-hand trading platform must strictly control management authority. The specific requirements are as follows:

(1) If you want to manage the campus second-hand trading platform, you must first log in to the system with your user name and password. Users without permission cannot log in to the system through any means and view any information and data in the system. This ensures that the system safety, reliability and accuracy.

(2) Set different permissions in the specific implementation. Users with different permissions cannot perform skip-level operations after logging in to the system.

3.2.2 Data integrity

(1) All recorded information must be kept comprehensive, and the information recorded content cannot be empty.

(2) The correlation between various data must be kept correct.

(3) The same data must be consistent in different records.

3.3 System interface analysis

At present, interface design has become a key indicator for evaluating software quality. A good user interface can increase users' confidence and interest in using the system, thereby improving work efficiency. JSP technology uses JAVA language as a scripting language. JSP The web page provides an interface to the entire server-side JAVA library unit to serve HTTP applications. It is easier to create dynamic pages. The customer interface refers to the interface between the software system and the user, which often covers the interface formats of output, input, and human-computer dialogue.

1. Output design

Output is when the computer solves the input basic information, generates high-quality and effective information, and makes it available to managers in a certain format. This is the main responsibility and goal of output design.

The process of system development is opposite to the implementation process, not from input design to output design, but from output design to input design. This is because the output form is directly related to the user, and the design purpose should be to ensure that the user can use the output form easily and to reflect useful information from each department in a timely manner. The principle of output design is to consider all the needs of different management levels as a whole, but also to be concise and not to provide users with unnecessary information.

2. Enter the design

The collection and entry of input data is cumbersome, requires a lot of manpower and certain equipment, and often makes mistakes. Once the data input into the system is incorrect, the processed output will amplify these errors, so the accuracy of the input data plays a decisive role in the performance of the entire system.

The input design has the following principles:

1) The input volume should be kept as low as possible to meet the processing requirements. With less input, there will be fewer errors and less time to prepare the data.

2) The input preparation and input process should be made as convenient as possible, so as to reduce the incidence of errors.

3) The input data should be checked as early as possible (as close as possible to the point where the original data occurred) so that errors can be corrected in a timely manner.

4) Input data is recorded as early as possible into the form required for its processing to prevent errors that may occur when the data is transferred from one medium to another and needs to be transcribed.

3. 4 System process and logic

Figure 3-3 Login flow chart

Figure 3-4 Password changing flow chart

4 System outline design

4.1Overview _ _

This system adopts two modes: B/S structure (Browser/Server, browser/server structure) and Web service-based model. It is a model structure suitable for the Internet environment. As long as users can connect to the Internet, they can use it at any time and anywhere. The system working principle diagram is shown in Figure 4-1:

4.2 System structure

This system is a website system based on B/S architecture. The designed administrator function structure diagram is as shown below:

Figure 4-2 Administrator function structure diagram

This system is a website system based on B/S architecture. The designed functional structure diagram for seller users is as shown below:

Figure 4-3 Seller user function structure diagram

This system is a website system based on B/S architecture. The designed user function structure diagram is as shown below:

Figure 4-3 User function structure diagram

4.3.Database design _

4.3.1 Database entities _ _ _

The goal of conceptual design is to design a conceptual model of a database system that reflects the information needs of an organizational department. The conceptual model of the database system is independent of the logical structure of the database system, the database management system (DBMS), and the computer system.

The design method of conceptual schema is to use conceptual data models (such as ER models) to represent data and the interconnections between data based on demand analysis, and to design a database system conceptual schema that reflects user information needs and processing needs. The goal of conceptual design is to accurately describe the information model in the application field and support various applications of users, so that it can be easily converted into a logical model of the database system and easily understood by users. The database system conceptual model is a data model oriented to the real world and cannot be directly used for the implementation of the database system. At this stage, users can participate in and evaluate the design of the database system, which helps ensure that the design of the database system matches the needs of users. In the design of conceptual models, the ER model method is the most common design method. The ER diagram of this system is shown below:

4.3.2 Database design table _ _

The campus second-hand trading platform requires a back-end database. The detailed information of each table in the database is introduced below:

Table 4.1 Second-hand product review table

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

refid

bigint(20)

no

Association table id

userid

bigint(20)

no

user id

nickname

varchar(200)

yes

NULL

username

content

longtext

no

comments

reply

longtext

yes

NULL

Reply content

Table 4.2 Product Donation Comment Form

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

refid

bigint(20)

no

Association table id

userid

bigint(20)

no

user id

nickname

varchar(200)

yes

NULL

username

content

longtext

no

comments

reply

longtext

yes

NULL

Reply content

Table 4.3 Second-hand goods

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

shangpinmingcheng

varchar(200)

no

product name

fenlei

varchar(200)

no

Classification

tupian

varchar(200)

yes

NULL

picture

pinpai

varchar(200)

yes

NULL

brand

guige

varchar(200)

yes

NULL

Specification

chengse

varchar(200)

yes

NULL

Fineness

shuliang

int(11)

yes

NULL

quantity

Yuanjia

int(11)

yes

NULL

original price

ershoujia

int(11)

yes

NULL

second-hand price

shangpinxiangqing

longtext

yes

NULL

product details

maijiazhanghao

varchar(200)

yes

NULL

Seller account

maijiaxingming

varchar(200)

yes

NULL

Seller name

sfsh

varchar(200)

yes

no

Whether to review

shhf

longtext

yes

NULL

moderation reply

Table 4.4 Classification

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

fenlei

varchar(200)

yes

NULL

Classification

Table 4.5 Donation information

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

dingdanbianhao

varchar(200)

yes

NULL

order number

shangpinmingcheng

varchar(200)

yes

NULL

product name

fenlei

varchar(200)

yes

NULL

Classification

tupian

varchar(200)

yes

NULL

picture

pinpai

varchar(200)

yes

NULL

brand

guige

varchar(200)

yes

NULL

Specification

chengse

varchar(200)

yes

NULL

Fineness

shuliang

int(11)

yes

NULL

quantity

maijiazhanghao

varchar(200)

yes

NULL

Seller account

maijiaxingming

varchar(200)

yes

NULL

Seller name

lingquriqi

date

yes

NULL

Collection date

zhanghao

varchar(200)

yes

NULL

account

xingming

varchar(200)

yes

NULL

Name

shouhuodizhi

varchar(200)

yes

NULL

Shipping address

Table 4.6 Sellers

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

maijiazhanghao

varchar(200)

no

Seller account

mima

varchar(200)

no

password

maijiaxingming

varchar(200)

yes

NULL

Seller name

xingbie

varchar(200)

yes

NULL

gender

shouji

varchar(200)

yes

NULL

cell phone

shenfenzheng

varchar(200)

yes

NULL

ID card

zhaopian

varchar(200)

yes

NULL

photo

Table 4.7 Message board

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

userid

bigint(20)

no

Message user id

username

varchar(200)

yes

NULL

username

content

longtext

no

Message content

reply

longtext

yes

NULL

Reply content

Table 4.8 Purchasing information

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

shangpinmingcheng

varchar(200)

no

product name

fenlei

varchar(200)

no

Classification

tupian

varchar(200)

yes

NULL

picture

pinpai

varchar(200)

yes

NULL

brand

guige

varchar(200)

yes

NULL

Specification

shangpinxiangqing

longtext

yes

NULL

product details

qiugoushuliang

int(11)

yes

NULL

Purchase quantity

yugujiage

int(11)

yes

NULL

Estimated price

zhanghao

varchar(200)

yes

NULL

account

xingming

varchar(200)

yes

NULL

Name

shouji

varchar(200)

yes

NULL

cell phone

sfsh

varchar(200)

yes

no

Whether to review

shhf

longtext

yes

NULL

moderation reply

Table 4.9 Commodity donation

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

shangpinmingcheng

varchar(200)

no

product name

fenlei

varchar(200)

no

Classification

tupian

varchar(200)

yes

NULL

picture

pinpai

varchar(200)

yes

NULL

brand

guige

varchar(200)

yes

NULL

Specification

chengse

varchar(200)

yes

NULL

Fineness

shuliang

int(11)

yes

NULL

quantity

shangpinxiangqing

longtext

yes

NULL

product details

maijiazhanghao

varchar(200)

yes

NULL

Seller account

maijiaxingming

varchar(200)

yes

NULL

Seller name

sfsh

varchar(200)

yes

no

Whether to review

shhf

longtext

yes

NULL

moderation reply

Table 4.10 Collection table

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

userid

bigint(20)

no

user id

refid

bigint(20)

yes

NULL

Collection id

tablename

varchar(200)

yes

NULL

Table Name

name

varchar(200)

no

collection name

picture

varchar(200)

no

Collection pictures

Table 4.11 Administrator table

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

username

varchar(100)

no

username

password

varchar(100)

no

password

role

varchar(100)

yes

administrator

Role

addtime

timestamp

no

CURRENT_TIMESTAMP

Add time

Table 4.12 My order

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

dingdanbianhao

varchar(200)

yes

NULL

order number

shangpinmingcheng

varchar(200)

yes

NULL

product name

fenlei

varchar(200)

yes

NULL

Classification

tupian

varchar(200)

yes

NULL

picture

pinpai

varchar(200)

yes

NULL

brand

guige

varchar(200)

yes

NULL

Specification

chengse

varchar(200)

yes

NULL

Fineness

shuliang

int(11)

yes

NULL

quantity

ershoujia

varchar(200)

yes

NULL

second-hand price

zongjia

varchar(200)

yes

NULL

total price

maijiazhanghao

varchar(200)

yes

NULL

Seller account

maijiaxingming

varchar(200)

yes

NULL

Seller name

jiaoyifangshi

varchar(200)

yes

NULL

means of transaction

goumairiqi

date

yes

NULL

Purchase date

zhanghao

varchar(200)

yes

NULL

account

xingming

varchar(200)

yes

NULL

Name

shouhuodizhi

varchar(200)

yes

NULL

Shipping address

pee

varchar(200)

yes

unpaid

Whether to pay

Table 4.13 Users

Field

type

null

default

Comment

id (primary key)

bigint(20)

no

primary key

addtime

timestamp

no

CURRENT_TIMESTAMP

creation time

zhanghao

varchar(200)

no

account

mima

varchar(200)

no

password

xingming

varchar(200)

yes

NULL

Name

xingbie

varchar(200)

yes

NULL

gender

shouji

varchar(200)

yes

NULL

cell phone

shenfenzheng

varchar(200)

yes

NULL

ID card

zhaopian

varchar(200)

yes

NULL

photo

5 system detailed implementation

5. 1 Implementation of the administrator module

5. 1.1 Message board management

The system administrator of the campus second-hand trading platform can manage message board information and view and reply to user messages. The specific interface is shown in Figure 5.1.

Figure 5.1 Message board management interface

5. 1.2 Purchasing information management

系统管理员可以管理求购信息,可以查看求购信息,审核求购信息,具体界面如图5.2所示。

图5.3 求购信息管理界面

5.1.3 二手商品管理

系统管理员可以管理二手商品信息,对二手商品信息进行审核,修改,删除操作。界面如下图所示:

图5.4 二手商品管理界面

5.2 卖家模块的实现

5.2.1 发布二手商品

卖家登录后,可以在后台发布二手商品信息,需要上传二手商品的图片,描述二手商品相关信息。界面如下图所示:

5.2.2 个人信息

卖家登录后,可以在后台查看个人信息,更改个人信息。界面如下图所示:

图5.6 个人信息界面

5.3 用户模块的实现

5.3.1 求购信息

用户登录后可以查看求购信息,可以提交商品名称查询求购信息。界面如下图所示:

图5.7 求购信息界面

5.3.2 二手商品

用户登录后可以查看二手商品信息,可以收藏二手商品,可以购买二手商品。界面如下图所示:

图5.8 二手商品界面

5.3.3 商品捐赠

用户登录后在商品捐赠界面能够领取商品,可以评论商品。界面如下图所示:

图5.9 商品捐赠界面

6系统测试

6.1概念和意义

测试的定义:程序测试是为了发现错误而执行程序的过程。测试(Testing)的任务与目的可以描述为:

目的:发现程序的错误;

任务:通过在计算机上执行程序,暴露程序中潜在的错误。

另一个预测是相关的术语叫纠错(Debugging)。它的目的与任务可以规定为:

目的:定位和纠正错误;

任务:消除软件故障,保证程序的可靠运行。测试与纠错的关系,可以用图6-1的数据流图来说明。图中表明,每一次测试都要准备好若干必要的测试数据,与被测试程序一道送入计算机执行。通常把一次程序执行需要的测试数据,称为一个“测试用例(Test Case)。每一个测试用例产生一个相应的“测试结果”。如果它与“期望结果”不想符合,便说明程序中存在错误,需要用纠错来改正。

图6.1测试与纠错信息流程

6.2特性

(1)挑剔性

测试是为了证明程序有错,而不是证明程序无错。因此,对于被测程序就是要“纯毛求疵”,就是要“鸡蛋里挑骨头”。

(2)复杂性

测试仪程序则比较容易,这其实是一个误区。设计测试用力是一项需要细致和高度技巧的高能工作,稍有不慎就会顾此失彼,发生不应用得数楼。

(3)不彻底性

实际测试都是不彻底的,当然不能够保证测试后的程序不存在遗漏的错误。

(4)经济性

通场这种测试称为“选择测试(Selective Testing)”。为了降低测试成本,选择测试用力是应注意遵守“经济性”的原则。

6.3重要性

软件测试在软件生命周期中占据重要的地位,在传统的瀑布模型中,软件测试学仅处于运行维护阶段之前,是软件产品交付用户使用之前保证软件质量的重要手段。近来,软件工程界趋向于一种新的观点,即认为软件生命周期每一阶段中都应包含测试,从而检验本阶段的成果是否接近预期的目标,尽可能早的发现错误并加以修正,如果不在早期阶段进行测试,错误的延时扩散常常会导致最后成品测试的巨大困难。

6.4测试方法

首先我们来说界面测试,界面测试是为了使程序在不同的的操作平台上能够运行界面,并且能够保持原来的风格。我把完整程序拷贝到Windows 7环境下,似的程序运行正常,运行界面上的字体图片等设置都能够保持得非常好。不出现字体变形等情况!

其次进行功能测试。该系统测试采用的是单元测试,集成测试,完善性测试等多种方式进行测试。

经过测试,所有功能都能得以实现,没有任何变形。至此,在功能的测试上也已经比较圆满的完成了。

由于经验不足,写代码时出现了一些考虑不周的系统缺陷,写代码的时候会出现与设想不一致,比如说代码不规范导致接口与接口之间出现问题,功能与客户的要求不符合,这样导致产品不能过关,无法交付。所以产品在上线前必须反复测试,经过反复测试,修改,再测试,再修改,产品才能够不断完善。在整个系统测试中,根据需求文档和设计文档,逐一对功能进行检测并写好测试用例,有效避免残片缺陷,因为产品出现缺陷不仅影响功能,而且可以导致数据的不准确,导致产品质量的降低,经过测试,才能使得产品的稳定性和成熟度得到极大的提升,产品质量也才有保证。

6.5 功能测试

功能测试主要包括五项内容:适用性、准确性、可操作性、依从性、安全性。

本系统功能测试如表6.1所示:

表6.1  系统功能测试

测试内容

测试结果

适用性

准确性

可操作性

依从性

安全性

6.6可用性测试

可用性测试用于检测系统的可操作性、可理解性、可学习性等方面内容。具体测试方面如表6.2所示。

表6.2 系统可用性测试

测试项

测试人员的评价

窗口移动、大小改变、关闭等操作是否正常

操作模块是否友好

模块、提示内容等文字描述是否正确

模块布局是否协调、合理

模块的状态是否正确(对选中项能否发生对应切换)

鼠标、键盘操作是否支持

所需数据项是否正确显示

操作流程是否合理

是否提供帮助信息

6.7性能测试

性能测试主要通过模拟系统运行环境,测试系统性能是否符合客户需求。性能测试的重要技术指标就是:系统运行速度、网络响应时间和支持并发节点数。

1)系统运行速度:通过在不同计算机上试运行本系统,没有发现有任何迟滞、停顿现象。

2)网络响应时间:网络响应时间主要包括网络最小响应时间、平均响应时间、最大响应时间三个参数。经过测试,在网络运营良好状态下,NBA局域网内响应时间三参数为:1/2/6s,NBA外网响应时间三参数为3/7/12s,符合客户需求,属于用户心理可承受范围。

3)支持并发节点数:经过模拟环境测试,本系统在并发节点达46个时,网络运营速度会发生较大波动,延迟时间10秒左右,符合客户需求。

6.8测试分析

本网站设计时借鉴了国内外优秀网站的优点,从界面到系统设计都保证了用户能够方便操作。系统的主要特点和优点归纳如下:

(1)本系统用的移置性和针对性都比较高,因为针对性高可以提供更好的服务而移置性可以在多个系统上运行,更给客户带来了极大的方便。

(2)该完整内容全面,管理方便可以及时的全面的处理各种错误,异常,这样避免了很多因用户的马虎操作而出现的失误,其操作方便,用户界面友好,能够上网的人都可以很好的进行操作。

6.9测试结果分析

经过对上述测试结果分析,本系统符合用户需求。所有基本功能点实现,操作简单,操作流程简单合理,产品运行性能良好,是一款值得推广的校园二手交易平台

结论

在这次毕业设计中遇到的最困难的方面就是在数据库方面的知识,在刚开始进行毕业设计的时候感觉十分困难,根本不知道该从何处下手,但不断的坚持,设计最终被完成。无论多么的困难,只要能够坚持下来,善于去找到好的材料来研究,在研究中充分利用资源,没有困难是不会被成功解决的。

在开发系统的过程中,本人运用到Spring Boot技术和平时学习中所了解的一些技术,通过实现这些技术,大大提高了整个系统的性能。在论文中这些技术都做了比较详细的介绍。本系统还存在很多缺点和不完善的地方,例如有些细节上做的还不够完善,有些功能模块还需要加强。在今后的日子里,能够对这些不足进行改善。

通过这次最终的毕业设计,平时所学到的知识不仅融合了,而且获得了许多计算机知识。在整个设计过程中明白了许多东西,也培养独立工作能力,树立信心,对自己能力的工作能力,我相信以后会学习和工作生活中有至关重要的作用。同时也大大提高了手的能力,使其难以充分体会探索的乐趣和成功的创作过程,设计过程中汲取的东西,是一笔宝贵的财富。

回顾过去做毕业设计的整个过程,充满了付出和收获,但是当你看到成果的时候的感觉,是一种难以用言语表达的喜悦之感这些在毕业设计过程中学习到的东西将会使我终身受益!

最后,感谢指导老师的关心和指导,在我毕业设计的整个过程中,他给与了我很多的帮助和讲解,在导师的帮助下我的毕业设计才能如此顺利的完成。

致谢语

经过几个多月的不断学习,我的毕业设计终于如期完成。此次毕业设计是对我们日常所学计算机理论知识的一次综合性评测,也是将理论应用到实践的一项考察。

首先我要感谢此次指导我的老师,是他的及时纠正我在设计当中出现的问题,使得我的设计高质量完成。指导老师在我本次校园二手交易平台的开发过程中,为程序、框架的设计、代码等方面以及论文设计提供了很多宝贵的意见,并且为我推荐了许多相关的资料,他的指导和建议使我受益匪浅,通过老师的耐心辅导和指点,我的论文顺利完成,在此,我表示深刻的感谢。

我也要感谢帮助过我的同学们,和我一起探讨论文的不足,给我的设计提出宝贵的建议,在这次设计中他们的帮助使得我的设计更加完善更加具体。

最后,我也要感谢学校为我们提供了一个良好的学校环境。祝愿学校的领导教师以及和我一起奋斗的同学们工作顺利,事业有成,也要祝愿学校的前景更加辉煌。

参考文献

[1]付昕. 基于B/S模式仓库管理系统的实现[J].山东省农业管理干部学院学报, 2010, 27(4):166-168

[2] 雷文华, 薛小文. MATLAB和Servlet在网络数据处理中的应用[J]. 电子测试, 2010, (11):81-86.

[3] 黄艳峰. 在Java语言中实施“案例教学”的研究与探索[J]. 电脑知识与技术, 2010, 6(5):1148-1149

[4] 王玉英. 基于JSP的MySQL数据库访问技术[J]. 现代计算机:专业版, 2010, 19(14):63-66

[5] 赵钢. JSP Servlet+EJB的Web模式应用研究[J]. 电子设计工程, 2013, 21(13):47-49

[6] David L.Anderson.Managing  Information Systems.清华大学出版社,2002:16

[7] 王家华.软件工程[M],沈阳:东北大学出版社,2011:46

[8] 张孝祥,徐明华.软件开发课堂.清华大学出版社,2009:55

[9] 崔洋.MySQL数据库应用从入门到精通.中国铁道出版社,2013:27

[10] 王珊,萨师煊.数据库系统概论.高等教育出版社, 2006:16

[11] 崔洋.MySQL数据库应用从入门到精通.中国铁道出版社,2013:27

[12] 王珊,萨师煊.数据库系统概论.高等教育出版社, 2006:16

[13] 张海潘.软件工程导论.清华大学出版社,2008:86

[14] 黄艳峰. 在Java语言中实施“案例教学”的研究与探索[J]. 电脑知识与技术, 2010, 6(5):1148-1149

[15] 王玉英. 基于JSP的MySQL数据库访问技术[J]. 现代计算机:专业版, 2010, 19(14):63-66

Guess you like

Origin blog.csdn.net/licongzhuo/article/details/133325628