Design and implementation of green plant purchasing system based on SSM

Summary

With the wave of informatization sweeping the world, many traditional industries that were only seen offline in the past have begun to move to the Internet. In order to be able to adapt to the current booming environment of e-commerce, many green plant merchants have also shifted the transactions of green plants and related products from offline to online.

The green plant shopping platform is developed using JSP and SSM technology, combined with HTML, CSS and other front-end technologies to complete the data display work, and uses the MySQL database to perform persistent operations on system data. In the green plant purchase system, the administrator can put the latest green plant information on the shelf, and can classify the green plants to facilitate customers to choose. In addition, the system also sets up an order management module, and the administrator can view all the green plants in the system. Order records to view marketing statistics, etc.; and users can quickly and conveniently select green plants in the system and perform operations such as purchase and settlement.

Keywords : green plant purchasing system; Mysql database; JSP; SSM

ABSTRACT 

With the tide of informatization sweeping the world, many traditional industries that were only seen offline have begun to switch to the Internet. In order to adapt to the current good environment of e-commerce, many green plants businesses have also transferred the transaction of green plants and their related products from offline to online.

The green plant purchase platform is developed using JSP and Servlet technologies, and combines HTML, CSS and other front-end technologies to complete the data display. MySQL database is used to perform persistent operations on system data. In the green plant purchase system, the administrator can put the latest green plant information on the shelf and classify the green plants to facilitate customers' selection. In addition, the system has set up an order management module, so that the administrator can view all order records in the system and view the sales volume statistics; Users can quickly and conveniently select green plants, purchase and settle accounts in the system.

KEYWORDS: Green Plant Purchasing System;Mysql database;Jsp technology

Chapter 1 Introduction

1.1 The source and significance of the topic

With the rapid development of information technology, the offline green plant purchase business has gradually lost its market. Now, more and more online green plant shopping stores have appeared. In the early days, the online trading market was seriously hindered due to reasons such as company certification, legal and regulatory restrictions, and logistics services that could not keep up. Since the 21st century, these problems have been well resolved, so in recent years, the domestic online trading market has become better and better, and many large enterprises have begun to transform in order to get a share of the big wave of e-commerce.

According to statistics from relevant websites, in recent years, the average annual transaction value of the domestic e-commerce market has reached 7.8 trillion yuan, an exponential growth compared to a few years ago. People don't come to shop offline, and people are already used to the online shopping experience. Online shopping is not only convenient for transactions, but also has a wide variety of products and fast logistics and distribution, which brings consumers an excellent shopping experience. The emergence of the green plant purchase system has also brought good news to consumers who love green plants.

As the background of online transactions is getting better and better, and people continue to improve their living standards, some consumers who love green plants are beginning to think of ways to use green plants to decorate interior decoration or garden decoration. In addition, there are many uses of green plants, such as using green plants to express love, using green plants to decorate the office, buying soil tools for green plants, etc. There are many uses of green plants, which are suitable for many scenes, which leads to The market with green plants is very good. People's demand for green plants is also increasing. Although there are many green plant stores offline, because the traditional green plant stores basically rely on manual and paper texts to process information, this will give The seller brings such troubles as it is difficult to find when there are many green plants. Based on this background, the green plant purchase system came into being.

The green plant purchase system based on JSP can not only reduce the trouble of merchants in maintaining product data in the traditional paper way, but also standardize the data, improve the inspection speed, update the green plant information and auxiliary material information in time, and effectively and accurately The details of the modified greenery. Allow customers to grasp the data of fresh green plants in the first time. In addition, after the system classifies the green plants, consumers can shop more easily, providing consumers with a convenient and fast shopping experience.

1.2 Development at home and abroad

1.2.1 Domestic development

In China, due to the rapid development of e-commerce, this has also driven many traditional offline industries, and the green plant industry is one of them. Major domestic e-commerce giants such as Taobao, Jingdong, Pinduoduo, etc. have opened The special area for green plants is used as a channel for green plant sales, and many merchants have customized various online green plant portals of their own. Search for "green plants" in the search engine to see a variety of green plant promotion platforms .

1.2.2 Overseas development

Abroad, as the largest "Thompson and Morgan" in the UK and the world, Thompson and Morgan has grown to become the largest mail order seed and plant company in the UK. Through the publication of catalogs and the operation of an award-winning website, Thompson and Morgan is able to provide home gardeners with the highest quality products available. As well as their long-standing presence in the UK, the brand also operates worldwide through their international website and offers their popular range of seeds through major European garden centres. The success of 1-800 Flower House in the United States and Thompson and Morgan in the United Kingdom has demonstrated the brilliant prospects of "online green plants". 1-800 Flower House is the most successful online flower shop company abroad. Thompson and Morgan is a successful online green plant procurement platform abroad. Their successful experience tells the world that the development of e-commerce must be closely linked with traditional industries. This mutual achievement and mutual development is the true meaning of the Internet industry.

1.3 My main work

This thesis expounds the development environment and technology of the green plant purchase system, system feasibility analysis and demand analysis, system function design, database design, detailed design and implementation and system test. Finally, the conclusion and prospect of the thesis work are given.

Chapter 2 System Key Technologies

This chapter mainly introduces some main technologies of system development. The development of computer technology is advancing by leaps and bounds, but some basic technologies are still in use from the beginning of development to today. In the final analysis, these technologies are well in line with computer language and even computer The characteristics of ecology, even in every sense, it has become an ecology for building computer languages.

2.1 Eclipse development tools

Eclipse is an open source , Java -based extensible development platform. By itself, it is just a framework and a set of services for building a development environment through plug-in components , but Eclipse comes with a standard set of plug-ins, including Java development tools (Java Development Kit, JDK ). Because it allows them to build tools that integrate seamlessly with the Eclipse environment. Since most of Eclipse is provided by plug-ins, it can provide users with a consistent and unified integrated development environment. Choose him to be portable, convenient and quick to build projects.

2.2 MySQL database management system

The database is a must for the project as a data storage place. MySQL is a very good relational database. The early mysql was not owned by Oracle, but was acquired by him later. Mysql is very small, the installation package is only a few megabytes, and the writing of sql language is relatively easy to learn. The most important thing is that mysql is also an open source software, so there is no need to pay extra. The system itself also summarizes the knowledge learned by learning Mainly, in the development of the system, it is best to use free software as much as possible, so choose mysql for database management. The capacity of Mysql is also very large. At the same time, it supports the operation of sub-database and sub-table, and supports distribution. Therefore, more and more small and medium-sized enterprises choose this database management tool. It is also worth mentioning that open source also has a disadvantage, that is, it is easy to be cracked and hacked, so the use of mysql is still mainly concentrated in small and medium-sized enterprises.

2.3 Tomcat server

Tomcat can be used after simple configuration on development tools (such as IDEA, Eclipse). The main reason for using the tomcat server is that first of all, it is an open source software, and no additional payment is required. You can easily download its source code and documents on Apache's official website, which is very convenient. Secondly, tomcat is very small. Because the development and operation of the system have high requirements for computer configuration, otherwise it is very easy to cause a freeze phenomenon. Therefore, in the selection of third-party software, it will be better to use smaller software as much as possible. So tomcat is also very suitable from this point of view.

2.4 JavaScript

As a dynamically compiled scripting language, the advantages of JavaScript are needless to say. With the birth of web development came a variety of development techniques. In order to survive in the big environment, JavaScript has also begun to adapt to the non-browser environment. Like Java, JavaScript can also be object-oriented, which can help students who have learned Java language learn JavaScript. In addition, JavaScript can be combined with CSS to produce many interesting page effects, which is the main reason why JavaScript is still popular in the general environment.

2.5 B/S Architecture

The B/S structure is a network structure model after the rise of the Web. It is an architecture in which the browser and the server interact, and its operation mechanism is as follows. First, the browser sends a request to the browser through the domain name and URL. After the browser accepts the request, it starts to parse the URL to locate the module file, generates an HTML file according to the parameters in the URL and the module file, and sends the generated HTML file to the browser. Accept the response HTML document, parse and organize related resource files, and then display the page, a complete process is like this. The B/S is built on the WAN, and generally only needs to have an operating system and a browser, and it is aimed at unknown user groups. The ability to control security is relatively weak, but its access speed is relatively fast, and it needs to be continuously optimized. Its various components are independent and perform their duties. Each part can play an important role. Replacing individual components can make The system is upgraded seamlessly. The cost of system maintenance expenses is minimized, and users can upgrade by downloading and installing from the Internet. B/S is built on the browser, and has richer and more vivid expressions to communicate with users, and most of them are very difficult, reducing development costs.

2.6 JSP technology

The web application program developed by JSP technology is based on Java. It has the characteristics of Java cross-platform, as well as business code separation, component reuse, basic Java  servlet function and pre-compilation function. It has the following characteristics:

The working principle of JSP is that when the user's browser requests a JSP file from the WEB server, the WEB server responds to the HTTP request, the JSP engine interprets the JSP logo and small script, and uses JDBC technology to access the database to generate the requested content by accessing the Java Bean component. And the result is returned to the browser in the form of Htm1 or XML page.

Servlet provides a simple and consistent mechanism for Web developers to extend the functions of the web server and interact with existing business systems. Servlet can be regarded as an Applet running on the server side. A Java Bean is a "class" that becomes an object with certain functions or processing a certain business by encapsulating properties and methods. JavaBeans are organized into Packages for management. In fact, a group of Java Beans are placed together in the XX directory with package XX before the definition of each class. They must be placed in the directory included in the system environment CLASS PATH, and the system can find them. The Java Bean. JSP technology is an extension of servlet technology and provides support for HTML and XML page creation. Web designers can easily combine fixed or static template data with dynamic content.

2.7 SSM framework

The SSM framework refers to the combination of Spring + SpringMVC + MyBatis framework, which is one of the most popular frameworks in Java Web development at present. The SSM framework integrates the advantages of the three frameworks of Spring, SpringMVC and MyBatis, which can improve development efficiency and code quality. The Spring framework provides functions , which can realize loosely coupled and reusable code; the SpringMVC framework provides common functions of MVC mode and Web development, which can realize the separation of requests and responses; the MyBatis framework provides object-relational mapping Functions such as dynamic SQL and dynamic SQL can realize data access and persistence operations. The integration of the SSM framework can make it easier for developers to develop web applications. The combination of the three frameworks enables developers to build modern Java Web applications faster and achieve good maintainability, scalability and testability.

Chapter 3 System Analysis

3.1 Feasibility analysis

3.1.1 Technical Feasibility

The JSP-based green plant purchase system is developed using JSP technology and Servlet, combined with JavaScript, CSS and other front-end technologies, using Eclipse for programming, and MySQL as a database. These development technologies and development tools have been learned in school, and I have also learned There has been in-depth study, so the development of this system is possible in terms of technical feasibility.

3.1.2 Economic feasibility

The development technology and development tools involved in the JSP-based green plant purchase system are all open source projects, and there is no need to pay any fees. In addition, the system only needs to be deployed on the local Tomcat server for testing and demonstration, and there is no need to rent a server and generate additional costs. , so the system makes sense in terms of economic feasibility.

3.1.3 Operational Feasibility

The green plant purchase system based on JSP is easy to operate and friendly to human-computer interaction. The principle of system development is as little input as possible and more feedback. The cultural level of the operator is not high, and the system is easy to deploy and the operating conditions are simple. All it takes is a phone with a browser. Therefore, the system is feasible in terms of operator feasibility.

3.2 Demand Analysis

The green plant purchasing system based on JSP has two roles: system user and system administrator. The functional modules designed for each role are as follows.

3.2.1 System Administrator Module

Administrator login: The administrator enters the user name and login password through the login page, and must use the correct user name and password to enter the management page.

User management: Administrators can search, view, add, modify, and delete user information.

Green plant management: administrators can view, add, modify, and delete green plant information.

Green plant type management: Administrators can view, add, modify, and delete green plant types.

Tool management: administrators can view, add, modify, and delete the tools used for planting.

Soil and fertilizer management: administrators can view, add, modify, and delete soil and fertilizer used for planting.

Seed management: Administrators can view, add, modify, and delete seed information.

Order management: Administrators can view, add, modify, and delete order information.

Announcement management: Administrators can view, modify, add, and delete announcement information.

3.2.2 User modules

Login: The user enters the user name and login password through the login page, and must use the correct user name and password to enter the platform.

Registration: New users need to register an account and log in to the platform with the new account.

Search: Users can vaguely search for the items they want to buy.

Details page: When users find the green plants they want to buy, they can view the specific introduction, planting environment, planting methods and prices of the corresponding green plants.

Purchase green plants: users select the green plants they want to buy on the green plant page and add them to the shopping cart.

Purchasing tools: Users select the tools they want to buy on the tools page and add them to the shopping cart.

Purchase soil and fertilizer: Users can choose to purchase the corresponding soil or fertilizer on the soil and fertilizer page.

Shopping cart: The user can increase or decrease the quantity of a certain product, remove a certain product, or empty the shopping cart, and view the cost of all the products.

Settlement page: Before submitting the order, the user can check whether the green plants purchased are correct.

Personal information: Users can modify basic personal information, such as: modify mobile phone number, login password, etc.

Announcements: View the latest announcements on the bulletin board.

Chapter 4 System Function and Database Design

4.1 Function design

The green plant purchase system is mainly divided into two roles, namely system users and system administrators. System user role functions include registration, login, browsing green plants, tools, soil information, purchasing green plants, personal order management, etc. ;The role functions of the system administrator mainly include login, user management, green plant management, green plant type management, tool management, order management, etc.

The system is divided into two parts, the foreground user end and the background administrator end. The foreground user terminal is used by worker users, and the background management terminal is used by system administrators.

The functions of the background administrator are as follows:

1. Administrator login: The administrator enters the user name and login password through the login page, and must use the correct user name and password to enter the management page.

2. User management: Administrators can search, view, add, modify, and delete user information.

3. Commodity management: Administrators can view, add, modify and delete commodity information.

4. Commodity category management: administrators can view, add, modify, and delete commodity categories.

5. Order management: administrators can view, add, modify, and delete order information.

6. Announcement management: administrators can view, modify, add, and delete announcement information.

7. Statistical management: administrators can view statistical information such as orders and likes.

The functions of the foreground client are as follows:

1. Login: The user enters the user name and login password through the login page, and must use the correct user name and password to enter the platform.

2. Registration: New users need to register an account and log in to the platform with the new account. (Registration page: account, password, mobile phone number, gender)

3. Search: Users can vaguely search for the products they want to buy.

4. Details page: When users find the green plants they want to buy, they can view the specific introduction, planting environment, planting methods and prices of the corresponding green plants.

5. Purchase products: The user selects the product he wants to buy on the product page and adds it to the shopping cart.

6. Favorite product: The user selects the product he wants to buy on the product page and collects it.

8. Shopping cart: The user can increase or decrease the quantity of a certain product, remove a certain product, and the user can also empty the shopping cart and view the cost of all products.

9. Settlement page: Before submitting the order, the user can check whether the green plants purchased are correct.

10. Personal information: Users can modify basic personal information, such as: modify mobile phone number, login password, etc.

11. Announcements: View the latest announcements on the bulletin board.

12. Message: users can leave a message to the administrator in the message place.

4.2 Function structure diagram

The overall functional structure diagram of the system is shown in Figure 4-1 below.

Figure 4-1 Overall functional structure diagram

4.3 Database Design

      Overall ER Diagram

Figure 4-2 Overall ER diagram

 Chapter 5 Detailed Design of System Functions and Realization Effects

5.1 Realization of client module functions

Registration renderings

Create an order rendering

Shopping cart renderings

5.2 Realization of background module functions

Product category added

Product addition

Membership table

order management

Change personal password

For specific learning and understanding, please like private chat and pay attention to communicate with the author 

Guess you like

Origin blog.csdn.net/lf21qp/article/details/130558853