Design and implementation of community fresh food e-commerce platform based on SSM (paper + source code)_kaic

Contents
Abstract
Abstract
1 Introduction
1.1 Research background
1.2 Research status
1.3 Research content
2 Introduction to related technologies
2.1 B/S structure
2.2 MYSQL database
2.3 Introduction to Java
2.4 Introduction to SSM framework
3 System
analysis 3.1 Feasibility analysis
3.1.1 Technical feasibility
3.1.2 Economics Feasibility
3.1.3 Operational feasibility
3.1.3 Legal feasibility
3.2 System performance analysis
3.3 System function analysis
3.4 System structure analysis
3.4.1 Logical structure
3.4.2 Physical structure
3.5 System process analysis
3.5.1 Operation process
3.5.2 Add information Process
3.5.3 Edit information process
3.5.4 Delete information process
4 System design
4.1 System structure design
4.2 System sequence diagram design
4.2.1 Login module sequence diagram 4.2.2
Add information module sequence diagram
4.3 Database design
4.3.1 Database ER diagram design
4.3.2 Database table design
5 System Implementation
5.1 User Management
5.2 Employee Information Management
5.3 Product Information Management
5.4 Order Evaluation Management 5.5
System Homepage 5.6
Product Order
5.7 User Order
6 System Test 6.1
Test Objective
6.2 Test Strategy
6.3 Test Task
6.4 Test Results
7 Summary
References Acknowledgments
Abstract The community fresh food e-commerce platform is developed using the community fresh food e-commerce platform as an example. The system is developed with practical application as the background, based on the SSM framework and MYSQL database design and development, fully ensuring the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, making the work of the community fresh food e-commerce platform systematic, standardized and efficient. The function has two roles: administrator and user. Administrator functions include personal center, user management, employee information management, product classification management, product information management, order evaluation management, system management, order management, etc. User functions include personal center, order evaluation management, my collection management, order management, etc. The use of this system frees managers from heavy work and enables paperless office, which can effectively improve the efficiency of the community fresh food e-commerce platform.
 




[关键词]:社区生鲜电商平台;B/S架构;SSM框架;MYSQL数据库

Abstract
This community fresh food e-commerce platform is developed based on the community fresh food e-commerce platform as an example. The system is developed with practical application as the background, based on the SSM framework and MYSQL database design and development, which fully guarantees the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, which makes the work of the community fresh food e-commerce platform systematized, standardized and efficient.
The function has two roles: administrator and user. Administrator functions include personal center, user management, employee information management, product classification management, product information management, order evaluation management, system management, order management, etc.
User functions include personal center, order evaluation management, my collection management, order management, etc.
The use of this system frees managers from heavy work, realizes paperless office, and can effectively improve the efficiency of community fresh food e-commerce platforms.
[Keywords]: Community fresh food e-commerce platform; B/S architecture; SSM framework; MYSQL database

 
1 Introduction
1.1 Research background
The progress of society has brought about a sharp increase in the number of urbanized people. With the continuous increase in the number of people, the work of community fresh food e-commerce platforms has become more and more arduous. The traditional community fresh food e-commerce platform model is facing A large amount of user information, community fresh food information, etc., the disadvantages of timely updating of information are highlighted. Traditional community fresh food management relies too much on human resource records. For huge user information and community fresh food information, it is obvious that it only relies on manpower, which is very difficult. It is difficult to accurately handle a large amount of data. The traditional management model is not only inefficient and has a high error rate, but also difficult to query real-time information about community fresh food, which brings a lot of inconvenience to community fresh food. Therefore, the traditional community fresh food management model It is far from being able to meet the development needs of local communities, and we urgently need to reform the community fresh food system.
With the rapid development of urbanization, the scale of communities continues to expand, and the resources available for community deployment have also increased significantly. After investigating the community fresh food information, we found that as the number of people in the community continues to expand, the community fresh food work is becoming more and more arduous and trivial, error-prone, and has a lot of data. Therefore, the community fresh food management system needs to be improved in a timely manner. To improve the efficiency of community fresh food management, it can also avoid management loopholes caused by imperfect management systems, making the operation and management of community fresh food e-commerce platforms particularly important.
1.2 Research status
With the rapid development of the Internet, global network technology has grown significantly and has full potential, and the penetration rate of the Internet has significantly increased. As of June this year, incomplete statistics show that the number of Internet users in China alone has reached 754 million, more than half of the total population and accounting for one-fifth of the total number of Internet users in the world. The use of computers for traditional information management has also become a new trend, gradually replacing traditional management methods. With the development of the Internet, wireless network coverage has also reached 80 to 90%. Therefore, in the future, the Internet will change the world even more and innovate the entire society.
With the creation of the first computer by John von Neumann, which became one of the most advanced scientific and technological inventions in the 20th century, mankind entered a new world and began an era of the Internet. The first computer occupies a large area, has a slow processing speed, and can only be used for scientific calculations. It takes a lot of time to turn it on once, and it must be used by professionals. It is all code algorithms, which is very inconvenient. Since Microsoft created the operating system, people can operate computers visually, and the uses of computers have also become diversified. Then the new Internet appeared in front of everyone, and people could use computers to achieve tedious calculations and information management. The development of the Internet has provided a good foundation for the design and implementation of community fresh food e-commerce platforms. With the vigorous development of networks and computers, community fresh food e-commerce platforms have begun to appear. Community fresh food e-commerce platforms are based on the Internet and computers. The paperless media not only saves the waste of paper, but also ensures the real-time nature of the community fresh food e-commerce platform and meets the needs of the community fresh food e-commerce platform.
1.3 Research content
This community fresh food e-commerce platform is developed using SSM framework and MYSQL database technology, which realizes the scientific management of community fresh food for users, greatly improves the management efficiency, and makes the management of user community fresh food related information systematic and Efficient and scientific. Through the system demand analysis, this community fresh food e-commerce platform was designed. The main research contents are: (
1) Understand the workflow of the system during use and write a demand analysis about the system.
(2) Analyze the system requirements and feasibility.
(3) System process analysis, operation process, development process, etc.
(4) System implementation and preparation of development technical documents for this system.
(5) Write code.
(6) Conduct system testing on this community’s fresh food e-commerce platform.


2 Introduction to related technologies
2.1 B/S structure
The biggest advantage of B/S is that it can be operated anywhere without installing any special software. As long as there is a computer with Internet access, it can be used, and the client has zero maintenance. The system can be expanded very easily.
The B/S architecture does not require program deployment on any client. Using such a program structure to use the developed system is to use the browser, which means configuring the developed program to a remote server. Any client computer that can access this server can operate and use the program. This method brings great convenience to users. This structure improves the operating efficiency of the program, breaks geographical restrictions, and reduces the cost of using the program.
What we develop is a community fresh food e-commerce platform. We can configure the community fresh food e-commerce platform system on a remote server. After obtaining access rights, as long as you can access the Internet, you can use and access the system and perform related tasks. Operation, with such an advanced mode, we only need to maintain the program on the server to ensure the normal use of the program, which greatly improves work efficiency and reduces maintenance costs.
2.2 MYSQL database
The database used by the community fresh food e-commerce platform developed this time is a MYSQL database. This database is a database with certain scalability and high performance proposed by the foreign Microsoft company. 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.
MYSQL features are as follows:
(1) C and C++ compilers are used and tested to ensure the portability and flexibility of the source code.
(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.
(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 The column can be used as the name.
(7) TCP/IP, ODBC and JDBC databases and provide connections to other
(8) Management tools to manage, control and optimize database operations
(9) Can tens of millions of records in a large database
2.3 Introduction to Java
This system development uses object-oriented Java as the software programming language. Java looks very similar to C++ on the surface, but Java only inherits some of the advantages of C++. The features of the C++ language that are rarely used by programmers are removed from the Java design. . The Java programming language does not have any structure. It treats arrays and strings as objects, thus eliminating the need for pointers, and the Java programming language also eliminates the need for preprocessors. The Java programming language can excellently reflect the relevant theoretical knowledge of object-oriented. Program developers can save many unnecessary operations during program development, save a lot of time, and reserve more time and energy for research. Programs, usually Java, can implement automatic processing functions on direct and indirect reference objects. It can automatically collect those useless units, which greatly avoids problems related to storage management. When a Java source file is compiled and run, it requires text editing software such as WordPad and Notepad in the attachment, or the use of a specialized program development platform (MyEclipse) to define various classes and use the system resources by calling the classes. The access operation compiles the Java source file into intermediate code (binary) and stores it in the class file. Finally, the Java virtual machine is used to execute and call the class file to satisfy the Java API call. As software development technology becomes increasingly mature, Java language can make network applications efficient, fast, and closer to reality. It is currently the most widely used technology in the IT industry. There are many programming tools on the market currently. Here are a few programming tools for everyone to have a brief understanding of.
Programming tool one: Eclipse, which is a development software with free and open source code and strong scalability.
Programming tool two: NetBeans, which is also free and open source code, can meet and adapt to a variety of Web applications and clients. Can be put into use in the Java integrated development environment.
Programming tool three: IntelliJ IDEA can automatically prompt and analyze the source code.
Programming tool four: MyEclipse, a commercial software, is used more in the Java integrated development environment.
Programming tool five: EditPlus can be run directly. Java program, provided that the compiler and interpreter can run normally.
2.4 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. Introduction to
Spring 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. Come. 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 the 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.

Guess you like

Origin blog.csdn.net/weixin_39563171/article/details/133102503