Java-based flower sales system/online flower shop

 Summary

The content of this graduation project is to design and implement a Yicheng flower sales system based on the Spring Boot framework . It is under Windows, uses MYSQL as the database development platform, and Tomcat network information service as the application server. The functions of Yicheng flower sales system have been basically realized, including home page, personal center, user management, flower language management, flower center management, flower type management, message board management, system management, order management, etc.

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

Keywords:  Yicheng flower sales system;java language;MYSQLdatabase; Spring Boot framework

Abstract

The content of this graduation project is to design and implement a post city flower sales system based on spring boot framework. It takes MySQL as the database development platform and Tomcat network information service as the application server under windows. The functions of Yicheng flower sales system have been basically realized, mainly including home page, personal center, user management, flower language management, flower center management, flower type management, message board management, system management, order management, etc.

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

Key words: Yicheng flower sales system; Java language; Mysql database; Spring boot framework

Table of contents

Abstract

Chapter 1 Introduction 

1.1 Background of the topic

1.2 The purpose and significance of the research

1.3 Main work done in this paper

Chapter 2 Technical Introduction 

2.1 Spring Boot framework

2.2 java language

2.3 MYSQL database

2.4 B/S structure

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 functional structure

3.6 System structure diagram

3.7 Yicheng flower sales system business process

Chapter 4 Database Design 

4.1 Database conceptual design

4.2 Data table design

Chapter 5 Detailed Design of Website 

5.1 Design of website homepage

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

Acknowledgments

Chapter One Introduction

1.1 Background of the topic

The quiet rise of online shopping is a product of social and economic development. Compared with traditional stores, Yicheng flower sales system has certain advantages. For a traditional store, 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 site selection. There are locations all over the world. Can see the flowers you sell . The most popular online sales websites nowadays are online shopping platforms such as Taobao, Pinduoduo , and JD.com. These shopping platforms have attracted many buyers. The non-store sales method allows sellers to reduce the time from production to sales. In some aspects, the operating costs of sellers are also reduced, and consumers can also buy cheaper flowers 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 lower the threshold for merchants to enter.

Today's electronic shopping malls are the most frequent places for flower 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 better services to consumers . E-malls use the Internet as a platform to realize communication and communication between buyers and sellers on the Internet. Compared with physical stores, online sales still have many advantages. It has a complete shopping process and can place orders at any time to complete the buyer's purchase. need. For companies, it can expand space to reduce costs and improve operational efficiency. Customers can compare prices online to find flowers with higher cost performance , so they can choose the flowers they like . From this point of view, the construction and development of e-commerce has become an important development direction in the future.

The construction of Yicheng flower sales system has enhanced the competitiveness of the enterprise, and it has the characteristics of user- friendly use, simple and elegant interface, fast running speed, easy management of data information, and convenient system maintenance. The flowers for sale are displayed in the form of a web page , and each module operates to guide the user through the purchase process. After the user selects the flowers to purchase, the relevant fees are paid through the Internet. The payment types are diverse and can be paid through banks, postal services, WeChat , etc. . The flowers purchased by users from the mall can be delivered to users through logistics .

1.2 The purpose and significance of the 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 flowers from all over the world without leaving home , and online malls can sell a variety of flowers , including virtual goods , electronic goods , daily necessities, etc. Our goal is not just to display our flowers online , but more importantly, to let more customers know about flowers and create more business opportunities. Therefore, our current challenge is to design the front-end interface. We must attract customers’ attention and choose a more user-friendly interface design that is more intuitive, so that customers can buy the flowers they like .

The main significance of this system is to go all out to provide users with an online trading system that is easy to operate, has a simple interface and intuitive information. Users who use this system can first browse to Flower Language and Flower Center , and register as a user of this website . They can use the shopping cart to select the flowers they want to buy , and then submit an order to the merchant to complete the online transaction process.

1.3 Main work done in this paper

The content of this paper is about the Yicheng flower sales system . The main content includes not only the analysis and design of the system but also the detailed explanation and analysis of several main modules. This Yicheng flower sales system is divided into administrator operations and user operations. The user 's main operation is to browse flower information on the web page. Through the flower center , consumers can register an account of their own through the website. With permission, they can modify their personal information. Through the flower classification list, they can quickly find users. If you want to buy a category of flowers , then find the flowers in the category and place an order with the merchant . For the operations of the administrator, only the administrator can log in to the backend to perform operations. The backend management is mainly for adding some flower centers , updating the flower center management, giving the administrator permission to modify the user , and the orders placed by the user can be seen in the backend. 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 it will start from the functional analysis to think about what kind of data logical structure is needed, and build the data logical structure into data entities. Finally, How to implement these functions is discussed from several main modules.


Chapter 2  Technical Introduction

2.1 Spring Boot framework

Spring Boot is a new framework from the Pivotal team designed to simplify the initial setup and development of new Spring applications. The framework uses a specific configuration method that eliminates the need for developers to define boilerplate configurations. In this way, Spring Boot aims to become a leader in the booming field of rapid application development.
Spring Boot features:
1. Create a separate Spring application;
2. Embed Tomcat, no need to deploy WAR files;
3. Simplify Maven configuration;
4. Automatically configure Spring;
5. Provide production-ready features such as indicators, health checks and External configuration;
6. Absolutely no code generation and XML configuration requirements;
  Installation steps:
   The most basic thing is that Spring Boot is a collection of libraries that can be used by the build system of any project. For simplicity, the framework also provides a command line interface that can be used to run and test Boot applications. Released versions of the framework, including an integrated CLI (command line interface), can be manually downloaded and installed from the Spring repository. An easier way is to use the Groovy enVironment Manager (GVM), which handles the installation and management of Boot versions. Boot and its CLI can be installed from the GVM command line GVM install springboot. You can use the Homebrew package manager when installing Boot on OS X. To complete the installation, first switch to the pivot repository using brew tap pivotal/tap and then execute the brew install springboot command.

2.2 java language

JAVA language is currently the most widely used language development program in the software market. It can be used on a variety of platforms, has strong compatibility, is adaptable to most operating systems on the market, will not appear garbled, has better scalability and maintainability, and has the ability to analyze and solve problems. Procedure-oriented programming makes it easier for us to write stronger code.

Compared with other languages, JAVA is relatively simple, more convenient to compile, and has high security and reliability. According to incomplete statistics, more than 20 million people around the world are using it now . JAVA can be used both embedded and independently. JAVA can be roughly divided into two parts, one is the compilation that JAVA is responsible for, and the other is the operation that JAVA is responsible for. JAVA and C++ languages ​​are very similar, but JAVA is compiled in an object-oriented way when programming, so that the compiled software can be used on a stand-alone computer or on the Internet, and it is more convenient to check for errors. The distributed and architecture-neutral characteristics of JAVA also make its storage faster and editing simpler. Object-oriented includes four characteristics. One is encapsulation, which means that certain functions and attributes can be achieved when defining a class. The second is abstraction, which is a type of class. A class with common attributes can be encapsulated in an abstraction to facilitate simple editing. The third is inheritance. As the name suggests, it has the characteristics of the former. Another feature is polymorphism, which can be used in multiple ways together, which shows its good scalability [8] .

2.3 MYSQL database

The development of the website must be supported by a corresponding database. The database has a certain organizational structure and can store and manage data information. In the past, the function of the database was only data storage and management operations. However, with the changes and development of the times, the current database has evolved into data processing. In this way, the database has gone through many reforms from the initial simple storage of data table information to the current large database that can store thousands of data.

The database used in the laboratory management system developed this time is a MYSQL database. This database runs fast, has high security performance, and has no restrictions on the platform used, so it is widely used in system development. MySQL is an open source and multi-threaded relational management database system. MySQL is an open source database and is cross-platform. Although its functions may not be powerful, many people understand the basic applications of this database. In the database, a total of 10 There are several tables, each of which is corresponding and has its own connection. The database is of great significance. If there is no link to the database, there is no way to run the program. This obviously shows the importance of the database and the program. closely connected [9] .

2.4  B/S structure

The B/S (browser / server) structure is the current mainstream network structure model. It can concentrate the core functions of the system on the server, which can help system developers simplify operations and facilitate maintenance and use. Users only need to install current popular browsers such as 360 Browser, Google Chrome, and QQ Browser on the client side, and install databases such as sqlserver and mysql database in the computer [10] . The installed browser interacts with the server-side database for information data. Many things that specialized software can do can also be achieved using the B/S structure model, which can combine Web browser technology, ActiveX technology, and multiple scripting languages. It helps program developers save a lot of development costs. At present , the B/S structure has become the mainstream structure of program development. The best thing about it is that there are no location restrictions and there is no need to install special software. A laptop or computer can access the system if it can access the Internet. Developing the system using B/S will save trouble in later system maintenance. You don’t have to deal with all problems on the server. Simple client- side processing can solve some problems. The developed program will also be more interactive with users. It will also The browser can be refreshed in real time to update local data information of the program.

Figure 2-1 Three-layer structure diagram of B/S mode

Chapter 3 System Analysis and Design

3.1 System description

Yicheng flower sales system is a small and medium-sized online shopping platform. People can buy flowers on the Internet and buy what they want without going out. This website is a flower type . Users can find the flowers they want to buy on the flower website , put a variety of flowers into the shopping cart, and then submit a purchase order to proceed with the purchase process. Administrators can perform daily updates and maintenance on the system through the management of the flower center and user information .

3.2 Analysis of system functions

In order to facilitate user purchase and administrator management, the entire Yicheng flower sales system adopts the following functional management modules, including the design of administrators and users :

User module: This module contains several sub-modules .

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

User registration account: Fill in relevant user information, which is used for users to log in to this website and purchase flowers . Including the user 's user account, user name, mobile phone number, email, gender, avatar, points and other information, which allows the user to log in to the system first and then modify his or her information. Only by registering as a user of this website can the user log in to this website. Page shopping for flowers , otherwise you can only browse the flowers on the web page but cannot make purchases.

User data modification: The function of this module is mainly for the modification of user registration data. For example, when 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 data through the user data modification page .

Browse flowers module: This module allows users who open this website to see the flowers sold on the website . Both logged in users and unlogged users can view the flowers on this website .

Buy flowers module: This module function is only available to users who have registered on this website. You must first log in to the website system, then select the flowers you want to buy on the browsing page , you can add or delete items in the shopping cart, then select the checkout function, and you can choose to modify it. The information required by the user can be used to place an order with the mall through this process.

Flower management module: Administrators can manage all flowers . Different flowers can be classified into different lists, so that users can quickly find the flowers they want. Flower information can be added , and uploaded records can be modified and deleted.

User management module: Administrators can query and verify user information registered on this website , and have the authority to modify user information. Administrators can also delete any user 's account.

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

3.3 System design ideas

Regarding the Yicheng flower sales system , I found many books on e-mall design and learned more about Java . I chose fresher colors for the overall design. The colors of the website pages should not be too fancy and should make the entire page It looks very unified, so I chose a relatively simple and elegant design. The database uses a mysql database. This website has designed user permissions. For the security of the database, ordinary users only have the function of browsing the flowers page. If you want to buy flowers , you need to go to the user registration page to register one of your own. account, and then log in to make a purchase. Finally, after the main functional modules can be realized, the entire website can be tested and modified repeatedly to achieve the desired effect.

3.4 System design ideas

An excellent design work must have a correct concept and form a complete Yicheng flower sales system by selecting reasonable development tools, data structures and operating systems . According to the actual needs of consumers, this Yicheng flower sales system The design is based on the following principles.

  1. Practicality

This mall shopping system targets consumer shopping needs and is based on the principle of convenience for users who use this system , while adding some advanced design concepts. According to the different needs of consumers, we create a shopping platform with simple operation interface, complete module functions and easy management, which can fully meet the needs of consumers and facilitate the management of the website by the managers of this website.

  1. reliability

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

  1. Intelligence

The design requirements of this system make it easy for the website administrator to manage this website. Users can enter different flower browsing pages through different module entrances according to their own needs. Through the editing and updating of the background flower list, consumers can see the latest flowers. information and facilitate the provision of services to more users .

  1. Scalability and flexibility

The module design of the system is mainly designed to facilitate website business expansion and user needs. It requires consumers to browse flowers easily and quickly search for the flowers they want to buy according to their own needs .

3.5 System functional structure

  1. User management function

This part of the content provides homepage, flower language, flower center, message board, personal center, backend management, shopping cart, etc. Users can register, log in, modify personal information and submit orders.

  1. Administrator management functions

This part of the content includes homepage, personal center, user management, flower language management, flower center management, flower type management, message board management, system management, order management , etc. Administrators can add, delete, modify, and check all flower information, manage user information and orders, and update the latest flower information.

3. 6 System Structure Diagram

The module division of the entire 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 graphical 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/133500942