Web-based school second-hand book mall system/second-hand book trading system

  Summary

This article discusses the design and implementation of the school's second-hand bookstore system . From the perspective of practical application, the website is implemented using computer website design, database and other related knowledge, network and Mysql database design. The website mainly includes user registration, user login, Browse books , search for books , view books and make purchases, confirm receipt of purchased books, refund and return, view personal information, change passwords , merchant registration, merchant login, add books, ship books, administrators Management of users, merchants, book categories, price ranges, book information, book ratings, order information and other functions. The website interface has a humanized design, is simple to operate and has certain use value. This article mainly discusses the design ideas, functional architecture, technology used, database design, and specific implementation of the website. In the detailed design part, the system function design and database design are mainly discussed. At the end of this article, the test results of the website are explained and summarized.

Keywords: springbootframework,java language,school second-hand bookstore system,

Abstract

This paper discusses the design and implementation of the school second-hand bookstore system. From the perspective of practical application, the website uses the relevant knowledge of computer website design and database, and the design of network and MySQL database. The website mainly includes user registration, user login, browsing books, searching books, viewing books and purchasing, confirming the receipt of purchased books, refunding and returning, viewing personal information Modify the password, register the merchant, log in the merchant, add books, ship the books, and the administrator has the functions of managing users, merchants, book classification, price range, book information, book scoring, order information and so on. The website interface is humanized, easy to operate and has certain use value. This paper mainly discusses the design idea, functional architecture, applied technology, database design and specific implementation of the website. In the detailed design part, it mainly discusses the system function design and database design. At the end of this paper, the test results of the website are explained and summarized.

Keywords: springboot framework, Java language, school second-hand bookstore system,

  Directory

Abstract I

Abstract II

1 Introduction 1

1.1 Development background

1.2 Introduction to e-commerce

1.3 The purpose and significance of this research 5

1.4 Main work done in this paper

1.5 Research content of this paper

1.6 Organizational structure of this paper

2 Introduction to Development Technology 7

2.1 Introduction to Java language 7

2.2 Introduction to mysql database 7

2.3 MySQL environment configuration 7

2.4 B/S architecture 8

2.5 Springboot Framework 8

3 System Analysis 9

3.1 Feasibility analysis 9

3.1.1 Technical feasibility 9

3.1.2 Economic feasibility9

3.1.3 Operational feasibility 10

3.2 Analysis of website performance requirements 10

3.3 Website Function Analysis 10

3.4 Analysis of system process 11

3.4.1 User management process 12

3.4.2 Personal Center Management Process 13

3.4.3 Login process 13

4System Design 14

4.1 Software function module design 14

4.2 Database design 14

4.2.1 Concept model design 14

4.2.2 Physical model design 15

5 system detailed design 17

5.1 Front desk function module 17

5.2 Administrator function module 21

5. 3 User background function module 25

5. 4 Merchant Function Module 25

6 System Test 27

7Summary and experience 28

7.1 Summary 28

7.2 Experience 28

Reference 29

Acknowledgments 30

                         introduction

1.1 Development background

In recent years, cities and social economy have developed rapidly, people's living standards have continued to improve, and consumption concepts have undergone great changes. With the development of Internet technology, the Internet has penetrated into all aspects of people's daily lives, quietly changing people's lifestyles. In China, using websites to trade " second-hand books " has gradually become a common transaction method [1] . For example, our common used car, second-hand house trading markets , salted fish and other similar websites have been developing very well in recent years . The biggest advantage of the development of this type of second-hand trading website is the rapid dissemination of information and high timeliness . With the development of computer and Internet technology, the school second-hand bookstore system has provided vitality to the traditional second-hand bookstore . However , factors such as consumption concepts, investment costs, technical talents, payment, and damage to second-hand books have hindered its development. Therefore, solving these problems is the primary task to promote the development of second-hand bookstores . The school second - hand bookstore system still has huge potential .Most users are still willing to go online to buy some second-hand books, which are of high quality and low price . With the continuous development of social economy, the consumption level of users is also constantly improving. Most people will buy a lot of goods on Taobao or physical stores, such as clothes, shoes, toys, books, etc., but after buying many books , Some of them have been read once or twice, or some have not been read yet, so they have been placed at home and become second-hand books. This not only takes up space at home, but also prevents the books from being properly used. This is a waste of space and money [ 2 ] . So if we can build a school second-hand bookstore system so that these second-hand books can be sold to the users who need them at a cheaper price , it will be very useful for both users who do not need these second-hand books and users who need these books . advantageous. This is the significance of establishing the school’s second-hand bookstore system [3] .

1.2 Introduction to e-commerce

E-commerce is a variety of transactions completed electronically. E-commerce is an advanced application of information technology that is used to enhance business relationships between trading partners. "E-commerce is the realization of an information-based business concept, used to improve the efficiency of the trade process. E-commerce is a new model of business, which connects enterprises in various industries through the Internet, making virtual and real Cooperation is possible." All enterprises in a supply chain can become a coordinated cooperative whole, and employees in the enterprise can also participate in supplier business processes [4] . Retailers' sales terminals can also be automatically connected to suppliers, so that the purchasing department is no longer needed. Purchase orders will be automatically confirmed and shipped, and companies can provide better services to customers in new ways. The Internet provides a new development opportunity for small and medium-sized enterprises. Any enterprise can establish business relationships with suppliers or customers around the world. Such effective use of information has become an important means for enterprises to enhance their competitiveness in the new economic model, and e-commerce will surely become a basic means of trade and communication [5] .

1.3 The purpose and significance of this research

Today is xx, xx. Just like November 11th, many people bought a lot of books. Just like me, when I sorted out my books, I realized that I had bought so many things, but I have rarely seen it or never seen it before . These things are as tasteless as tasteless things and it is a pity to discard them. The emergence of the school second-hand bookstore system has given these useless books a new place to go, and its market potential can be seen from this . Therefore, it is practical to establish a school second-hand bookstore system . While it allows users to sell these things that are of little use to themselves , it can also enable other users to buy things that are useful to them at low prices [6] . In summary, the school’s second-hand bookstore system has the following significance:

  1. Provide a mutually beneficial trading platform between users .
  2. The operation is simple, users can find what they want at home , and it is timely.

(3) It can promote the fine virtues of the Chinese nation of hardship, simplicity, thrift and frugality.

The biggest feature of the school's second-hand bookstore system is free transactions - from sending sales and purchase information to viewing products and negotiating prices, everything is freely chosen by buyers and sellers. To sum up, there are some advantages as follows:

(1) For buyers: It is undoubtedly very cheap and can save buyers a lot of money. Moreover, through the transaction of second-hand books on campus , you can know how to save some money, so that you can have a clearer understanding of how to manage money [7] . If it is a second-hand book, you can not only save money, but also save some time to take notes and find a way that suits you on the path that others have taken.

(2) For the seller: He can sell the goods he does not need at a price lower than the market price, so that he does not have to keep those goods and can still make a small income, without causing unnecessary waste, and at the same time, he can Provide some convenience for others, why not?

(3) From an environmental perspective, this can save resources and transfer your unused items to people who need to use them, greatly reducing the reuse of resources. Starting from small things like this is conducive to the transformation of our country into a conservation-oriented society.

1.4 Main work done in this paper

    The main work of this article is to start from the demand analysis of the website, combine the knowledge I learned in school and the materials consulted in the library, and gradually explain the system composition of the school's second -hand bookstore system , database management and other major aspects of the design [ 8 ] . In particular, the design of each module of the website is elaborated in separate chapters. This allows readers to easily understand the entire website's ideas and overall design ideas, which can improve the readability of this paper.

1. 5 Research content of this paper

This article mainly discusses the design and implementation of the school's second-hand bookstore system . And its detailed design plan, implementation technology and operation conditions were analyzed and studied, and finally the future work was studied and discussed. This article focuses on the following aspects:

(1) System architecture, main functional modules, main data workflow, backend database design, database configuration and connection;

(2) Detailed design, development and key technologies of each functional module of the system .

1. 6 Organizational structure of this paper

  • Introduction: Analyze the background of the project and explain the content of the research .
  • Development technology : The system mainly uses Java language , B/S mode and myspl database, and introduces them.
  • System analysis: including the overall structure of the system, analysis of the system's performance, functions, and flow charts.
  • System design : Detailed design of software function modules and database.
  • Overall system design : describe the functions of the system, administrators, users , and merchants ,
  • Test the system .
  • Summary of experience : The final chapter of the paper summarizes my own summary and thoughts when developing this system and writing the paper, including acknowledgments [9] .

2 Introduction to development technology

2.1 Introduction to Java language 

The Java language is a completely object-oriented programming language. The idea of ​​object-oriented programming language is to regard objectively existing things as a class of objects with states and behaviors, and then use abstract methods to find the common states and behaviors of the same class of objects to form a model - a class. Class is the core of Java programming language and the basic abstract unit of Java language. All things in the world are objects, and they can be abstracted into classes with states and behaviors. The main features of the Java language are:

The Java language is typically object-oriented. It provides classes, which in turn provide object models. By using inheritance and polymorphic methods, code reuse can be achieved.

The Java language is safe. The biggest problem to be solved in the contemporary network environment is security. Java has internal security measures to ensure the safety and integrity of the program.

The operation of the Java language is platform independent. Java programs can run on any system as long as the Java operating system is installed.

The Java language is multi-threaded.

The Java language has memory management. Java can automatically manage memory, making good use of system resources and reducing waste.

2. 2   Introduction to mysql database 

Utilizing MYSQL's data independence, security and other features to operate data in software projects can ensure data accuracy and reduce programmers' application development time.

The characteristic of MYSQL is that it supports multi-threading, can make full use of system resources conveniently, effectively improves speed, and also provides multiple ways to connect to the database; MYSQL's functions are relatively weak and small in scale, but the system requirements are not high. MYSQL can fully meet the needs of this website.

Using MYSQL to establish a system database is not only conducive to the early integration of data processing business, but also conducive to the development of the latter two data expansion operations [10] .

2. 3  MySQL environment configuration

(1) The data of this system uses MySQL, so MySQL must be installed in the specified directory. If you download a non-installed MySQL compressed package, just decompress it directly to the specified directory. Then click on the file C:\Program Files\MySQL\bin\winMySQLadmin.exe where C:\Program Files\MySQL is the MySQL installation directory. Enter the initial user and password of winMySQLadmin (note: this is not the user and password in MySQL). Don’t worry. After confirmation, a traffic light icon will appear in the task launch bar in the lower right corner. The red light means that the service is stopped, and the green light means that the service is stopped. Normally, left-click this icon->winnt->install the service to install the service, then left-click this icon->winnt->start the service to start the MySQL service.

(2) Modify the root password of the MySQL database. Use cmd to enter the command line mode and enter the following command:

cd C:\Program Files\MySQL\bin

MySQLadmin -u root -p password 123

Enter password: appears when you press Enter. This is to enter the original password. The password was empty when it was first installed, so just press Enter. At this time, the password of the account root in MySQL is changed to 123 and the installation is completed.

2. 4   B/S architecture 

The B/S system can be used through a computer with Internet access. Its biggest advantage is that it does not require the installation of special software. First, the browser sends a request to the server, and then the server processes the request and returns the information to the browser. There is no need to access and calculate the data again. It only needs to be responsible for displaying the data to reduce the requirements. If the client is like a "skinny person", the server will become more and more "fat". Compared with the C/S architecture, the biggest difference between the B/S architecture and the C/S architecture is that the application software of the B/S system uses a web browser as a platform for interacting with users , while C/S requires the development of dedicated applications.

There are currently two popular structures in MIS system structures: C/S and B/S.

    C/S structure system: The C/S structure is a client server structure. It can assign tasks to the Client and Server sides, making full use of the advantages of the hardware environment at both ends to reduce system communication costs. The main function of the client is to handle human-computer interaction, execute client applications, collect data and send task requests to the server [11] . The basic function of the server is to execute background programs. It mainly responds to client requests. In addition, its functions also include: sharing management, communication management, file management, etc. of the data service reservation storage system.

    B/S structure system: This network structure simplifies the client and concentrates the center of system function implementation on the server. In this mode, only a browser is needed. This structure hands over a lot of work to the WEB server, only requests WEB services through the browser, and then returns information according to the request.

Usually used within the website network, using C/S. The use of B/S is not limited to intranet use. Taking into account a series of requirements of this management system, the system is developed using a B/S structure.

2. 5 Springboot framework 

This technology is an open source application framework for the Java platform, and its purpose is to simplify the initial construction and development process of Sping. By default, many framework usage methods are configured, and Jar packages are automatically loaded, in order to allow readers to run spring applications as quickly as possible.

The main advantages of SpinrgBoot are:

  1. Provides a faster and broader entry experience for all spring development;
  2. Zero configuration;
  3. Integrated the configuration of a large number of commonly used third-party libraries;

Provide ready features. Today, all developers in the Java field are using SpinrgBoot, and it has gradually become a leader in the development field .

3 System analysis

3.1 Feasibility analysis

Before developing a system, a system feasibility analysis must be conducted. The purpose is to use the simplest method to solve the biggest problems. Once the program is developed to meet the needs of users, it will bring many benefits. Below we will choose whether to ultimately develop this system from technical, operational, economic and other aspects.

3.1.1 Technical feasibility

The springboot framework was selected for the development of this system . Java provides developers with a rich class library, which greatly reduces the difficulty of programming using Windows and reduces the difficulty of developers in designing algorithms. Eclipse plays an indispensable role as a Java developer . Its friendly interface and powerful functions bring a lot of convenience to program developers. Coupled with the simple environment and easy transfer, this system is undoubtedly the best choice. Therefore, the backend design chooses to use the MySQL database mainly for establishing and maintaining information. The front-end development requirements should have the advantages of complete functions and easy operation, while the back-end database requirements are to be able to establish and maintain the unity and integrity of data information [12] .

Based on the above goals, the hardware of this system is analyzed as follows:

Pentium 3 processor;

The memory is 2G;

The hard disk is 50G;

The operating system is Window 10 ;

In terms of software, Eclipse  and MySQL database development tools are installed. Based on the above software and hardware requirements, it is feasible to obtain the technology of this system .

3.1.2 Economic feasibility

The school second-hand bookstore system based on Java only requires an ordinary computer to develop the system software , and its cost is very low. In addition, as a graduation project, the development cost is basically negligible, and the put into use of the system software can realize a faster and more efficient school second-hand bookstore system , while also achieving effective savings in human resources and management resources. The school's second-hand bookstore system is completely economically feasible.

3.1.3 Operational feasibility

Nowadays, with the rapid development of science and technology, computers have already entered people's daily lives, and people's working environment does not have as many requirements as before. Workers do not need to go to the company to work , and some work can be done at home. [13] . This has greatly improved people's work efficiency. The diversity of operations has also become higher. Therefore, computerization and intelligence of management are inevitable trends brought about by social development. Various intelligent software emerge in endlessly. Different software can meet different needs of users. This not only improves work efficiency but also completes some customer-specific tasks. need. This system not only has a simple and clear interface, but also adopts a visual interface. Users can modify, delete, add and other operations on relevant information by simply using the mouse and keyboard. Because the operation of this system is very simple and easy to get started, it only takes a short time for people who use the system for the first time to get started. It can be seen that this system is operationally feasible.

3.2 Analysis of website performance requirements

Analyze website performance, including system responsiveness, interface simplicity and clarity, storage performance, ease of learning and stability;

System responsiveness: When tens of thousands of people are online at the same time, the response time should be within two or three seconds.

Simple and clear interface: The system interface requirements are simple and clear, the operation is simple, and the user operation is easy to use.

High storage performance: There is a lot of information that needs to be stored in the school's second-hand bookstore system , so the storage capacity of the system is very high, so the database should be very powerful to ensure that the information can be stored safely and stably;

Ease of learning: The system must be simple and easy to use. There are not many complicated operations and only simple learning is required to operate the system.

Stability: The school second-hand bookstore system is required to operate stably, with a clear interface and clear fonts, etc.

3.3 Website function analysis

Taking into account the needs of the school's second-hand bookstore system in real life and careful analysis of the system, the system permissions are divided into three categories: administrators, users , and merchants .

(a) Administrator; the functions involved in the administrator's use of this system mainly include home page, personal center, user management, merchant management, book category management, price range management, book information management, book rating management, system management, order management, etc. Function. The administrator use case diagram is shown in Figure 3-1.

Guess you like

Origin blog.csdn.net/weixin_47958760/article/details/133387386