Design and implementation of web-based online book store/book shopping system

Summary

The content of this graduation project is to design and implement an online book store based on JSP technology . It is under Windows, uses MYSQL as the database development platform, and Tomcat network information service as the application server. The functions of the online book store have been basically realized, mainly including personal center, book classification management, user management, book information management, system management, order management, etc.

The paper mainly discusses from the aspects of system analysis and design, database design and system detailed design. The system analysis and design part mainly discusses the system function analysis and system design ideas. The database design mainly discusses the database design. , the detailed design part of the system mainly discusses the detailed design process of several main modules.

Keywords:  online book store;JSPtechnology;MYSQLdatabase; Tomcatserver

Abstract

The content of this graduation project is to design and implement an online book mall based on JSP technology. It takes MySQL as the database development platform and Tomcat network information service as the application server under windows. The functions of online book mall have been basically realized, mainly including personal center, book classification management, user management, book information management, system management, order management, etc.

This paper mainly discusses the system analysis and design, database design and system detailed design. The system analysis and design part mainly discusses the system function analysis and system design ideas. The database design mainly discusses the database design, and the system detailed design part mainly discusses the detailed design process of several main modules.

Key words: Online Book Mall; JSP technology; Mysql database; Tomcat server

Table of contents

Abstract

Chapter 1 Introduction 

1.1 Subject background

1.2 The purpose and significance of the subject research

1.3 The main work done in the paper

Chapter 2 Technical Introduction 

2.1 B/S Architecture

2.2 Introduction to MySQL

2.3 MySQL environment configuration

2.4 Introduction to JSP technology

2.5 SSM framework

Chapter 3 System Analysis and Design 

3.1 System description

3.2 Analysis of system functions

3.3 System Design Ideas

3.4 System Design Ideas

3.5 System function structure

3.6 System Structure Diagram

3.7 Business Process of Online Book Mall

Chapter 4 Database Design 

4.1 Database conceptual design

4.2 Data table design

Chapter Five Detailed Design of the Website 

5.1 Design of website home page

5.2 Administrator function module

5.3 User background function module

Chapter 6 System Testing 

6.1 User shopping process test

6.2 System function test

Summarize

references

thank you

Chapter One Introduction

1.1 Subject background

The quiet rise of online shopping is a product of social and economic development. Compared with traditional stores, online bookstores have certain advantages. For traditional stores, it is very important to choose a better location. The quality of this location directly determines the future development of the store. If you choose a website, there is no such thing as location selection. All over the world You can see the books you sell . Nowadays, the hottest online sales websites are online shopping platforms such as Taobao, Pinduoduo , and JD.com. These shopping platforms have settled in many buyers. The way of selling without stores allows sellers to reduce the process from production to sales. In this way, the operating costs of sellers are also reduced, and consumers can also buy books that are cheaper online than in physical stores . Of course, opening a store is relatively risky, but on Taobao, you only need to register an account to open your own store on Taobao. For individuals, online sales have lowered the threshold for merchants to enter.

Today's electronic shopping mall is the most frequent place for book transactions. Sellers use the website to manage and operate, which improves the efficiency of the administrator's work, reduces possible errors in the work, and provides consumers with better services . The electronic mall is to use the network as a platform to realize the communication and exchange between buyers and sellers on the network. Compared with physical stores, online sales still have many advantages. It has a complete shopping process and can place an order at any time to complete the buyer's need. For the company, it can expand the space to reduce costs and improve the efficiency of operations. Customers can compare prices online to find books with relatively high cost performance , so that they can choose their favorite books . From this point of view, the construction and development of e-commerce has become an important development direction in the future.

The construction of the online book store has enhanced the competitiveness of the enterprise, and it has the characteristics of user-friendly, simple and elegant interface, fast operation speed, easy management of data information, and convenient system maintenance . The books to be sold are displayed in the form of a web page , and the operation of each module guides the user through the purchase process. After the user selects the book to purchase, the relevant fees are paid through the network. The types of payment are diversified, and payment can be made through banks, postal services, WeChat, etc. . Through logistics, the books purchased by users from the mall can be delivered to users .

1.2 The purpose and significance of the subject research

People's current lifestyle has undergone tremendous changes due to the popularity of the Internet. As e-commerce appears in people's vision, people pay extra attention to e-commerce. People can buy books from all over the world without leaving home , and online shopping malls can sell all kinds of books , including virtual goods , electronic goods , daily necessities and so on. Our goal is not only to display our books online , but more importantly, let more customers know about books and create more business opportunities. Therefore, our current challenge is the design of the front-end interface, which must attract customers' attention, choose a more humanized interface design, and have a more intuitive performance, so that customers can buy their favorite books on the Internet .

The main significance of this system is to go all out to provide users with an online trading system with convenient operation, simple interface and intuitive information. Users who use the system can first browse the book information and system announcements, and can register as users of this website. They can use the shopping cart to select the books they want to buy , and then submit the order to the merchant to complete the online transaction process.

1.3 The main work done in the paper

The content of this thesis is about the online book store , the main content not only includes the analysis and design of the system, but also elaborates and analyzes several main modules. This online book store is divided into administrator operation and user operation. The user 's operation is mainly to browse the book information on the web page. Through the book information, consumers can register an account belonging to themselves through the website, and have the authority to modify their personal information. Through the book classification list, they can quickly find users. If you want to buy a category of books , you can find the books under the category and place an order with the merchant . For the operation of the administrator, only the administrator can log in to the background to operate. The background management is mainly for adding some book information, updating the management of book information, and giving the administrator permission to modify the user . You can see the order placed by the user in the background. to manage. This article will start from the analysis part to discuss what kind of website consumers need and what kind of operation interface can ensure the ease of use of the system, then start to think about what kind of data logic structure is needed from the function analysis, build the data logic structure into a data entity, and finally How to realize these functions is discussed from several main modules.


Chapter 2  Technical Introduction

2.1 B/S Architecture

The B/S system can be used through a computer that can access the Internet. Its biggest advantage is that it does not need to install 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, as long as it is responsible for displaying the data to reduce the requirements , if the client is like a "thin man", 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: the application software of the B/S system uses a web browser as a platform for interacting with users , while the C/S needs to develop a dedicated application program .

Figure 2-1 B/S structure diagram

2. 2 Introduction to MySQL

In software projects, through the database of operational data, it can ensure its security, independence and data consistency, and provide access to the data system, so it can effectively reduce the time for programmers to develop applications.

MySQL can support multi-threading, which can facilitate the use of system resources and improve the speed of operation. And provide odbc, jdbc and tcp/ip to connect to MySQL in various forms; the function is lacking and the scale is small, but it is enough for this system.

Because the source code of MySQL is open to the outside world, anyone can download it through the corresponding method and modify it according to individual needs. MySQL is valued because of its speed, reliability, and adaptability.

Although MySQL may not be very powerful, due to its open source and wide spread, many people are aware of this database.

2.3 MySQL environment configuration

The data of this system uses MySQL, so you need to install MySQL to the specified directory. If you download the non-installed MySQL compressed package, you can directly decompress it 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 about filling in whatever you want. After confirming, a traffic light icon will appear in the task startup bar in the lower right corner. The red light means the service is stopped, and the green light means the service Normal, left click on this icon ->winnt->install the service to install this service, then left click on this icon ->winnt->start the service to start the MySQL service.

Change 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

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

2.4 Introduction to  JSP technology

Java Server Pages technology is released by Sun Corporation, which uses jsp technology to develop a technology for dynamic web applications. It is characterized by easy learning and cross-platform operation. It is the most suitable among many dynamic Web application programming languages. It has formed a complete set of specifications in just a few years and is widely used in various fields such as e-commerce. in the field. In China, JSP has been paid attention to by everyone and has developed very well. More and more dynamic websites have begun to use JSP technology. The following is a brief introduction to JSP and its related technologies. JSP technology can generate Web pages in a simple, convenient and fast way. Web pages using JSP technology can easily display dynamic content. JSP technology is designed to make it easier and faster to construct web-based applications that can work with a variety of web servers, application servers, browsers, and development tools.

2.5 SSM  framework

Today's popular "SSM Combination Framework" is the abbreviation of Spring + SpringMVC + MyBatis, which has been sought after by many. Framework for web projects, usually simpler data sources. Spring belongs to a lightweight inversion of control framework (IoC), but it is also an surface-oriented container (AOP). SpringMVC is often used in the classification work mode of the controller, which is separated from the model object, and the role of the program object is processed with the ATM. This decoupling treatment makes it easier to personalize the entire system. MyBatis is a good sustainability framework that supports common SQL queries and allows data optimization for advanced mapping of stored procedures. Due to the high development cost of large-scale Java Web applications, it is difficult to maintain after development and some difficult problems to solve during the development process, and the "SSM Composition Framework" is adopted, which allows the establishment of business hierarchies and provides a good solution to this problem .

Chapter 3 System Analysis and Design

3.1 System description

The online book mall is a small and medium-sized online shopping platform. People can buy books on the Internet , and they can buy what they want without going out. This website belongs to the type of books . Users can find the books they want to buy in the online book store , load various books into the shopping cart together, and then submit a purchase order to complete the purchase process. The administrator can update and maintain the system daily through the management of book information and user information .

3.2 Analysis of system functions

In order to facilitate user purchase and administrator management, the entire online book mall adopts the following major functional management modules, including the design of administrators and users :

User Module: This module contains several submodules including .

User login: The user login function is used to identify users who have registered on this website , and to provide services to users conveniently based on user information. The most important thing is that the system needs to register the information of the books purchased by the user and so on, and finally generate a shopping order for the user .

User registration account: Fill in the relevant user information information, which is used for users to log in to this website and purchase books . Including the user 's user name, user name, gender, age, contact number and other information, allowing users to log in to the system first, and then modify their own information. Only by registering as a user of this website can users shop books on this website page . Otherwise, you can only browse the books on the web page but not purchase them.

User profile modification: The function of this module is mainly for the modification of user registration information. For example, if a user logs in to the system and wants to modify his password, phone number, home address and other information, he can modify the user profile through the user profile modification page .

Book browsing module: This module allows users who open this website to see the books sold on the website , whether they are logged-in users or unlogged-in users , they can view books on this website .

Book purchase module: This module function is only available to users who have registered on this website. First, you need to log in to the system of this website, then select the book you want to buy on the browsing page , you can add and delete items in the shopping cart, and then select the checkout function, and you can choose to modify The information required by the user , through this process, an order can be placed with the mall.

Book management module: administrators can manage all books , and different books can be classified into different lists, so that users can quickly find the books they want , where book information can be added , and uploaded records can be modified and deleted.

User management module: the administrator can query and verify the user information registered on this website , and at the same time has the authority to modify the user information, and the administrator can also delete any user 's account.

Order management module: This module can see the books purchased by the user on the website and some information about the order, and can also check whether the order is executed.

3.3 System Design Ideas

Regarding the online book store , I found many books on the design of the electronic store, and I have a better understanding of JSP . I chose a relatively fresh color in the overall design. It is very uniform, so I chose a relatively simple and elegant design. The database uses a mysql database. This website has designed permissions for users . For the security of the database, ordinary users only have the function of browsing book pages, and if they want to buy books , they need to go to the user registration page to register their own. account, and then log in to make a purchase. Finally, after the main functional modules can be realized, the entire website is tested and modified repeatedly, so that the desired effect can be achieved.

3.4 System Design Ideas

An excellent design work must have a correct conception. By choosing reasonable development tools, data structures and operating systems to form a complete online book store , according to the actual needs of consumers, the design of this online book store is as follows principles for design.

  1. Practicality

The mall shopping system aims at the shopping needs of consumers, takes the convenience of users who use the system as the principle, and adds some advanced design concepts at the same time. According to the different needs of consumers, a shopping platform with simple operation interface, complete module functions and easy management is made, which can fully meet the needs of consumers and facilitate the management of the website.

  1. reliability

A good website must have high reliability. By combining advanced structural design and data security, the system can ensure that the system has high reliability and fault tolerance, so that the system will not appear some unnecessary error messages , interfere with the management of the site.

  1. intelligence

The design of this system requires that it is convenient for the administrator of the website to manage this website. Users can enter different book browsing pages through different module entrances according to their own needs. Through the editing and updating of the background book list, consumers can see the latest books. information, and facilitate the provision of services to more users .

  1. Scalability and Flexibility

The module design of the system is mainly aimed at facilitating the business development of the website and the needs of users . It requires consumers to browse books conveniently and quickly search for the books they want to buy according to their own needs .

3.5 System function structure

  1. User management function

This part provides book information, system announcements, personal center, background management, shopping cart, online consultation, etc. Users can register, log in, modify personal information and submit orders.

  1. Administrator management function

This part includes personal center, book classification management, user management, book information management, system management, order management , etc. The administrator can add, delete, modify, and check all book information, manage user information and orders, and update the latest book information.

3.6 System structure diagram

The module division of the whole system includes the user management module and the administrator management module. The user management module and the administrator management module are divided into several sub-modules. In order to facilitate a more intuitive understanding, the following figure shows the structure of the entire website in graphic form picture.

The overall functional structure of the website is shown in Figure 3-1:

 

 

 

 

 

 

Guess you like

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