JAVA-based campus second-hand trading platform (attached: source code paper database file)

development background

With the continuous development of Internet technology all over the world, various network applications based on Internet technology are emerging, and network technology is constantly deepening people's lives. People obtain information, enjoy life, exchange feelings, work online and so on from the Internet. Internet is rapidly changing people's way of life.

After many years of reform and opening up in our country, with the integration with the international community, the commercialization of various resources has gradually become synonymous with our society. In this situation, the resources of second-hand commodities on campus have also been greatly enriched. How to solve a class of problems and exchange information on such commodities with maximum utilization is a problem in existence. This graduation project is to solve this problem.

 purpose and requirements

In the current society, many e-commerce websites of various types have been established one after another, which can largely solve the blockage of people's information resources and geographical restrictions. As a university campus, along with the improvement of students' purchasing power and the annual enrollment and graduation, there are also many types of second-hand commodities. Due to the backwardness of information exchange, many of them are limited to campus bulletin boards or the way of asking people to publicize them on their behalf. Trading. This method has many limitations and contingencies, and cannot meet the requirements of smooth exchange of second-hand goods. So a new way of exchanging second-hand commodity information appeared, which is the Web-based campus network second-hand commodity trading system. Through this system, it can be found that every campus network user is the master of the system. Everyone can publish their own information very conveniently, browse the information released by others, and make a horizontal comparison of various second-hand commodity information to make their own best. good choice. It can be seen that the system is only a platform for exchanging second-hand commodity information, which is fundamentally different from general e-commerce websites.

System architecture design

This system adopts JSP/servlet technology, which is a set of campus second-hand trading platform software written in Java programming language. The system adopts the popular B/S development mode in recent years, and operates in the form of the Internet. The server only needs to install the system, and the client users can access the system through the browser very conveniently and quickly as long as they can access the Internet, browse and Publish second-hand transaction information, eliminating the complicated installation, configuration, maintenance and other operations in the traditional C/S mode. At the same time, due to the use of object-oriented Java language, this system also has the characteristics of Java language object-oriented, platform-independent, high security, high stability, multi-threading, etc., and Java language supports network programming technology. Make this system have very high use value.

The system development adopts the Web application component that realizes the MVC mode: Struts, the ORM component that realizes the data persistence function: Hibernate, uses JSP+HTML+JavaScript for interface processing, the database uses relatively stable MySQL 5.0, and uses JDBC for database access.

Keywords: JSP, Struts, Hibernate, MySQL, second-hand trading platform

System Architecture Design

This system is a typical three-tier application—the browser implements various operations on the database through the Web server.

In this system architecture, it is not directly JDBC to access the database and operate related tables in the database, but to complete the database operation through a series of Java objects in the persistence layer.

The mapping file is equivalent to the bridge between the Java object of the persistence layer and the table of the database, and it describes the correspondence between the two. Moreover, the relationship between Java objects in the persistence layer and database tables is also one-to-one.

System function module design

The system is mainly designed with user setting function, information release function, information management function, search information function, message function, and system management function module.

The user setting function is mainly to fill in the required personal data for user registration and complete the personal data login.

The function of publishing information is mainly for registered users. Logged-in users can immediately publish their second-hand product information and browse it immediately. This is the main function of this system.

The information management function is to help users who have published information to manage the second-hand commodity information published by themselves and also manage short message information. This feature is also mainly for registered users.

The search information function is oriented to all persons who log in to the system, and uses the method of fuzzy query to traverse all second-hand commodity information to search out the content that the viewer is interested in.

The message function is to leave a message on a second-hand product information, and you can also view other messages of this information.

The system management function is a module for the system administrator to manage all information resources of the system in a unified manner.

System function structure

Goals and Principles of Functional Design

The main purpose of this second-hand trading platform is to serve students and facilitate online transactions for students. Its principle is to achieve friendly interface, simple and reliable operation.

Specifically do:

The structure is clear, the interface is friendly and beautiful, simple and practical.

Dynamic information release: In order to fully demonstrate the timeliness of the website, the second-hand trading platform uses dynamic web page technology to achieve content release.

Provide a variety of information search and viewing methods. Fully automated management.

Comprehensively integrate the information between buyers and sellers, and provide a communication platform.

availability. The target system is fully functional and can fully meet business needs.

Database Design

Database Requirements Analysis

The demand for the database is mainly reflected in submitting information, updating information, deleting information, saving information, etc. to the database. The existence of these information depends on the information requirements of each functional module. Through the specific operation of the functional modules, the input and output of information in the database can be realized. Therefore, according to the requirements of each functional module, the following data tables and data structures are designed:

Master class table: used to realize the real name system of platform users and the basic information of the platform:

College information: including college number, college name, description, etc.

Class information: including class number, class name, college number, description, etc.

Student information: including student number, name, class number, college number, etc.

Type information: including type number, type name, type description, etc.

Trading region information: including region code, region name, region description, etc.

Temp class table: used to implement each module of the platform:

User information: including user number, user name, password, student number, and other relevant information of the user.

Product information: product number, information title, information content, user who released the information, information related content, etc.

Product message information: including message number, product information number, message content, etc.

System home page design

home page display design

The system home page is for all visitors of the platform. Both registered users and non-registered users can enter the system home page to view relevant second-hand information and second-hand guides. The main page consists of platform Logo, login box, search box and various types of latest and second-hand information lists. The effect of the main page is as shown in the figure

System login function design

Due to the different restrictions of tourists, ordinary users, and administrators, the system realizes the login function and provides interfaces for special operations of ordinary users and administrators.

System search function design

When the system searches, it also uses ActionForm (searchConditionForm) to receive the search form, and uses the Dao object in the Action to operate ActionFromr to return the search results. The search Struts configuration is shown in the figure

User registration function design

The user registration of this system implements the student real-name system. Before registration, you must first agree to the platform agreement, and then enter the relevant information on the registration input interface. The system collects the user registrant information. After the verification is passed, the registration is successful and you enter the registration success page.

Publish and modify information design

The release and modification of information is the main function of the system. Only registered users or administrators have the authority to publish information. Ordinary users can only modify the information they publish, and administrators can modify all information.

Information Management Design

Information management is divided into ordinary user personal information management and administrator member information management. The management page shows important information about the information to be managed and provides a link to the detail page. Each information has edit and delete buttons. Here we only introduce the personal information management page, the page effect is as shown in the figure

message message design

Logged-in users can leave a message for the information, and the message will be displayed immediately under the information details. The message input interface displays relevant information (username and email address) of the logged-in user, which will be passed into the Action along with the content of the message form for insertion. The effect of the message interface is shown in the figure


If you need the source code courseware and other materials supporting the system, you can private message me and share it with everyone~~

If there is a novice who wants to get started with Java and Python, but he doesn't know what to learn and how to learn? You can private message me and share the webpan information of Java and Python selflessly~~~

Share and encourage each other~~~

If you have any resources, you can share with each other, and if you have any questions, you can also discuss with each other~~~

Tsk~~~ You and me alone, then we can't learn from each other~~~ (dog head)

Guess you like

Origin blog.csdn.net/lxianshengde/article/details/125007047