Java project: design and implementation of online fruit sales mall system (java+ssm+mysql+jsp)

Posted by cafegirl on Sun, 23 Jan 2022 15:11:11 +0100

Research significance:

With the development of information technology and the rapid rise of Internet economy, online shopping has attracted more and more attention. The online wholesale market model of vegetables and fruits is bound to become a part of its trend. The fruit online wholesale system based on springboot} technology carries out the market consumption flow of fruit with the help of the Internet all over the world. Therefore, the fruit wholesale can be carried out locally or in different places. Online fruit wholesale can not only save a lot of time and physical strength, but also save back and forth costs. More importantly, you can understand the market situation of the fruit wholesale market without leaving home, and consumers can eat the fresh fruit they want. Producers and wholesale sellers can obtain more customer resources and wholesale channels, so as to improve the wholesale sales volume and scale of vegetables and fruits. Easily realize the trading transaction. This topic uses Java springboot} technology to develop a fruit system, which provides a platform for consumers and wholesalers, reduces the cost and time occupation, solves a series of problems such as traffic difficulties, and promotes people's living and consumption level.

Research status, level and development trend at home and abroad:

With the development of rural market economy, especially China's entry into WTO and integration into the trend of economic globalization, the fruit industry has entered a new period of market economy development at home and abroad, the relationship between agriculture, rural areas and the market is becoming closer and closer, and China's fruit industry has also entered a new historical development stage. Fruit industry departments, science and technology departments and agriculture related units have gradually improved their understanding of fruit industry informatization, and actively explore how the fruit industry information system can provide more services to farmers and enterprises. The characteristics of closed and decentralized vegetable business places and backward production means determine that the development of fruit industry plays a great role in promoting the development of fruit industry. In order to better serve agriculture, rural areas and farmers and promote the process of agricultural modernization, the construction of agricultural information system is imminent. With the deepening of the application of e-commerce in the wholesale market, part of the wholesale market "evaporated", quietly withdrew from the market and combined the tangible market with the intangible market, resulting in a new model. For most markets, the easiest form of organizational innovation is the combination of tangible market and intangible market. We can make full use of the advantages of the tangible market, establish an online market, build an online trading platform, establish online fruit shops for market operators, publicize online fruit commodities, guide operators to carry out online transactions, and implement an e-commerce model parallel to spot transactions. The development of agricultural websites shows that the combination of Internet and agriculture is gradually deepening, which is not only the need of the development of agricultural modernization, but also the inevitable trend of the development of rural e-commerce, which provides a guarantee for the development of e-commerce for the sale of agricultural products. Today, the majority of shoppers gradually demand higher and higher product cost performance, We found that we must have a perfect procurement and distribution system to continuously improve product quality and reduce product price. Therefore, it is imperative to reduce the increase of intermediate link cost of product sales. To this end, the e-commerce fruit and vegetable mall website is established to allow high-quality fresh vegetables and fruits to directly meet consumers on the website. First, the website can provide more detailed information, historical origin and customer comments than shopping in the store, and customers can easily quickly query the products they need from a wide range of high-quality vegetables and fruits; On the other hand, it also reduces store operation costs, transfers affordable prices to customers, and makes the development of e-commerce fruit and vegetable mall website inevitable.

Description of main functions:


Administrator role:

Administrator login, order management, customer management, fruit management, commodity category management and other functions.

User role:

Users log in, modify personal information, view home page, view commodity details, view commodities by category, view popular fruits, view new fruits, view my order, view my shopping cart, submit order and other functions.

Operating environment:

jdk1.8 eclipse mysql5, Navicat database visualization tool, etc

Main technologies:

HTML+CSS+JavaScript+jsp+spring+tomcat+mysql, etc

Main functions of homepage:


The main function of the home page is to display fruit products, view fruit classification, and users can log in and register on the web page. And searching fruit commodity information according to keywords.

Fruit classification view:

Hot fruit:

New fruit:

My order:

Main code implementation:

<!DOCTYPE html>
<html>
<head>
    <title>My order</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="/jsp_shuiguosaleshop/css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="/jsp_shuiguosaleshop/css/style.css">
    <script type="text/javascript" src="/jsp_shuiguosaleshop/js/jquery.min.js"></script>
    <script type="text/javascript" src="/jsp_shuiguosaleshop/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/jsp_shuiguosaleshop/layer/layer.js"></script>
    <script type="text/javascript" src="/jsp_shuiguosaleshop/js/cart.js"></script>
</head>
<body>
<!--header-->
<div class="header">
    <div class="container">
        <nav class="navbar navbar-default" role="navigation">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <h1 class="navbar-brand"><a href="/jsp_shuiguosaleshop/index">Fruit mall</a></h1>
            </div>
            <!--navbar-header-->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="/jsp_shuiguosaleshop/index" >home page</a></li>
                    <li class="dropdown">
                        <a href="#"Class =" dropdown toggle "data toggle =" dropdown "> fruit classification < B class =" caret "></b></a>
                        <ul class="dropdown-menu multi-column columns-2">
                            <li>
                                <div class="row">
                                    <div class="col-sm-12">
                                        <h4>Fruit classification</h4>
                                        <ul class="multi-column-dropdown">
 
                                            <li><a class="list" href="/jsp_shuiguosaleshop/goods_list">All series</a></li>

                                            <li><a class="list" href="/jsp_shuiguosaleshop/goods_list?typeid=18">Northern Fruit</a></li>
                                            
                                            <li><a class="list" href="/jsp_shuiguosaleshop/goods_list?typeid=19">Seasonal fresh fruit</a></li>
                                            
                                            <li><a class="list" href="/jsp_shuiguosaleshop/goods_list?typeid=20">Boutique gift box</a></li>
                                            
                                            <li><a class="list" href="/jsp_shuiguosaleshop/goods_list?typeid=21">Hot fruit</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <li><a href="/jsp_shuiguosaleshop/goodsrecommend_list?type=2" >Popular fruit</a></li>
                    <li><a href="/jsp_shuiguosaleshop/goodsrecommend_list?type=3" >New products</a></li>
                    <li><a href="/jsp_shuiguosaleshop/order_list" class="active">My order</a></li>
                    <li><a href="/jsp_shuiguosaleshop/user_center.jsp" >Personal Center</a></li>
                    <li><a href="/jsp_shuiguosaleshop/user_logout" >sign out</a></li>
                </ul>
                <!--/.navbar-collapse-->
            </div>
            <!--//navbar-header-->
        </nav>
        <div class="header-info">
            <div class="header-right search-box">
                <a href="javascript:;"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></a>
                <div class="search">
                    <form class="navbar-form" action="/jsp_shuiguosaleshop/goods_search">
                        <input type="text" class="form-control" name="keyword">
                        <button type="submit" class="btn btn-default " aria-label="Left Align">search</button>
                    </form>
                </div>
            </div>
            <div class="header-right cart">
                <a href="goods_cart.jsp">
                    <span class="glyphicon glyphicon-shopping-cart " aria-hidden="true"><span class="card_num">1</span></span>
                </a>
            </div>
            <div class="clearfix"> </div>
        </div>
        <div class="clearfix"> </div>
    </div>
</div>
<!--//header-->
    <!--cart-items-->
    <div class="cart-items">
        <div class="container">
            <h2>My order</h2>
                <table class="table table-bordered table-hover">
                <tr>
                    <th width="10%">ID</th>
                    <th width="10%">Total price</th>
                    <th width="20%">Fruit details</th>
                    <th width="30%">Receiving information</th>
                    <th width="10%">Order status</th>
                    <th width="10%">Payment method</th>
                    <th width="10%">Order time </th>
                </tr>
                        <tr>
                            <td><p>51</p></td>
                            <td><p>69.0</p></td>
                            <td>
                                <p>Rock sugar orange(69.0) x 1</p>
                            </td>
                            <td>
                                <p>Java Little Yong brother</p>
                                <p>13022500110</p>
                                <p>Tianfu Software Park</p>
                            </td>
                            <td>
                                <p>
                                  <span style="color:red;">Paid</span>
                                </p>
                            </td>
                            <td>
                                <p>
                                    WeChat
                                </p>
                            </td>
                            <td><p>2021-06-21 19:56:33.0</p></td>
                        </tr>
                </table>
        </div>
    </div>
    <!--//cart-items-->    
<!--footer-->
<div class="footer">
    <div class="container">
        <div class="text-center">
            <p>© All rights Reseverd</p>
        </div>
    </div>
</div>
<!--//footer-->
</body>
</html>

personal information:

wen.xml configuration:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>testssh2</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath*:applicationContext.xml</param-value>
  </context-param>
  <filter>
    <filter-name>CharacterEncodingFilter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
      <param-name>encoding</param-name>
      <param-value>UTF-8</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>CharacterEncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter>
    <filter-name>openSessionInViewerFilter</filter-name>
    <filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>openSessionInViewerFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter>
    <filter-name>SystemContextFilter</filter-name>
    <filter-class>com.neusoft.filter.SystemContextFilter</filter-class>
    <init-param>
      <param-name>pageSize</param-name>
      <param-value>15</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>SystemContextFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter>
    <filter-name>struts2</filter-name>
    <filter-class>com.neusoft.filter.MyStrutsFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
</web-app>

Background management:

User management:

Fruit management:

Fruit type:

For details, you can chat privately. Thank you for your support and help!

Click to view more java boutique projects > > >

Topics: Java MySQL JSP Spring Spring Boot