SSM-based book mall system [with source code]

Software Environment

Development language: Java
Database: MySQL
Technology: Spring+SpringMVC+MyBatis
Tools: IDEA/Ecilpse, Navicat, Maven

Technology used

  The Spring framework is an open source J2EE application framework initiated by Rod Johnson. It is a lightweight container that manages the bean life cycle. Spring solves many common problems that developers encounter in J2EE development and provides powerful IOC, AOP and Web MVC functions.
  Spring MVC is a follow-up product of SpringFrameWork and has been integrated into Spring Web Flow. The Spring framework provides full-featured MVC modules for building Web applications. Using Spring's pluggable MVC architecture, when using Spring for WEB development, you can choose to use Spring's Spring MVC framework or integrate other MVC development frameworks.
  MyBatis is an excellent persistence layer framework that supports customized SQL, stored procedures, and advanced mapping. MyBatis avoids almost all JDBC code and manual setting of parameters and obtaining result sets. MyBatis can use simple XML or annotations to configure and map native information, mapping interfaces and Java POJOs (Plain Ordinary Java Object, ordinary Java objects) into records in the database.

Demo

1. Home page

Insert image description here

2. Book details

Insert image description here

3. Order

Insert image description here

4. Shopping cart

Insert image description here

5. Book product management

Insert image description here

6. Product category management

Insert image description here

Features

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

  • 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 books purchased by the user and so on, 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 books. Including the user's user name, user name, gender, age, contact number and other information, users can log in to the system first and then modify their information. Only by registering as a user of this website can users purchase books on this website page. Otherwise, you can only browse the books on the web page but cannot purchase them.

  • 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 books module: This module allows users who open this website to see the books for sale on the website. Both logged in users and non-logged in users can view the books on this website.

  • Book purchase 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 books you want to purchase on the browsing page, you can add or delete items in the shopping cart, and 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.

  • Book management module: Administrators can manage all books. Different books can be classified into different lists, so that users can quickly find the books they want. Book 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 books purchased by users on the website and some information about the orders, and can also check whether these orders have been executed.

Summary

  Book mall management systems are widely used in large e-commerce platforms such as JD.com and Taobao. Therefore, book mall management systems have become indispensable in development. When designing and implementing the book mall management system, economic, technical and operational practicality factors were taken into consideration. IDEA was used as the development tool, MySQL was used as the database connection, and Java was used as the language programming to develop the system. This system has the advantages of low development cost, smooth operation, easy operation, and high safety performance. It 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.

System advantages

  • 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.

  • 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 does not have unnecessary occurrences. error messages that hinder the administration of the website.

  • Intelligence: The design requirements of this system make it easy for website administrators 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 book information, and conveniently provide services to more users.

  • Scalability and flexibility: The module design of the system is mainly aimed at facilitating website business expansion and user needs. It requires consumers to browse books easily and quickly search for the books they want to buy according to their own needs.

Database Design


  1. Field name field type in book table (book) database Chinese comment
    b_id int book id
    b_isbn varchar Isbn name
    b_name varchar book name
    b_author varchar book author
    b_publisher varchar publisher
    b_cover varchar book cover
    b_image1 varchar book image 1
    b_image2 varchar book image 2
    b_price varchar book Price
    bt_id int Book category
    b_stock int Book stock
    b_mark varchar Book introduction

  2. Book category table (boottype)
    field name field type in the database Chinese comment
    bt_id int book category id
    bt_name varchar book category name


  3. Field name and field type in order table (order) database Chinese comment
    o_id varchar Order id
    o_total float Order price
    o_amount int Order quantity
    o_status int Order status
    o_paytype int Payment method
    u_id int User id
    o_datetime timestamp Order time
    o_realname varchar User name
    o_phone varchar User mobile phone No.
    o_address varchar user address


  4. Field name field type in the order book table (orderitem) database Chinese comment
    oi_id int order item id
    oi_price float order price
    oi_amount int order quantity
    b_id int book id
    o_id varchar order id

  5. Book recommendation table (recommend)
    field name field type in the database Chinese comment
    r_id int recommended id
    r_type int recommended type
    b_id int recommended book id


  6. Field name field type in user table (user) database Chinese comment
    u_id int user id
    u_name varchar user account
    u_pwd varchar user password
    u_realname varchar user name
    u_redgt timestamp user registration time
    u_role int user permission
    u_mark varchar user permission name
    u_phone varchar user phone
    u_address varchar user address

Summarize

This system has the following advantages:

  • This system has high applicability and adopts B/S structure, so it can be used on most personal platforms.
  • The system divides user permissions. Administrators, sellers and users can see and operate different information, and the three have different operation permissions.
  • The system operation interface is simple and clear, and most people can use it normally.

Guess you like

Origin blog.csdn.net/2301_78335941/article/details/130877403#comments_30694758