個(gè)人網(wǎng)站建設(shè)與維護(hù)/如何建站
作者主頁(yè):源碼空間codegym
簡(jiǎn)介:Java領(lǐng)域優(yōu)質(zhì)創(chuàng)作者、Java項(xiàng)目、學(xué)習(xí)資料、技術(shù)互助
文中獲取源碼
項(xiàng)目介紹
本課題后端使用SpringBoot +Spring Cloud框架,前端采用html,JQuery,JS,DIV+CSS技術(shù)進(jìn)行編程,設(shè)計(jì)在線商城。
系統(tǒng)具有前臺(tái)和后臺(tái)兩大服務(wù)。
前臺(tái)主要有用戶登錄注冊(cè)、瀏覽商品、加入購(gòu)物車、提交訂單、支付等模塊;
后臺(tái)主要有商品管理、用戶管理、訂單管理、分類管理等模塊
環(huán)境要求
1.運(yùn)行環(huán)境:最好是java jdk1.8,我們?cè)谶@個(gè)平臺(tái)上運(yùn)行的。其他版本理論上也可以。
2.IDE環(huán)境:IDEA,Eclipse,Myeclipse都可以。推薦IDEA;
3.tomcat環(huán)境:Tomcat7.x,8.X,9.x版本均可
4.硬件環(huán)境:windows7/8/10 4G內(nèi)存以上;或者M(jìn)ac OS;
5.是否Maven項(xiàng)目:是;查看源碼目錄中是否包含pom.xml;若包含,則為maven項(xiàng)目,否則為非maven.項(xiàng)目
6.數(shù)據(jù)庫(kù):MySql5.7/8.0等版本均可;
技術(shù)棧
運(yùn)行環(huán)境:jdk8 + tomcat9 + mysql5.7 + windows10
服務(wù)端技術(shù):SpringBoot + MyBatis + Vue + Bootstrap + jQuery
使用說明
1.使用Navicati或者其它工具,在mysql中創(chuàng)建對(duì)應(yīng)sq文件名稱的數(shù)據(jù)庫(kù),并導(dǎo)入項(xiàng)目的sql文件;
2.使用IDEA/Eclipse/MyEclipse導(dǎo)入項(xiàng)目,修改配置,運(yùn)行項(xiàng)目;
3.將項(xiàng)目中config-propertiesi配置文件中的數(shù)據(jù)庫(kù)配置改為自己的配置,然后運(yùn)行;
運(yùn)行指導(dǎo)
idea導(dǎo)入源碼空間站頂目教程說明(Vindows版)-ssm篇:
http://mtw.so/5MHvZq
源碼地址:http://codegym.top
運(yùn)行截圖
文檔截圖
項(xiàng)目截圖
前臺(tái)頁(yè)面
后臺(tái)頁(yè)面
代碼
package com.lyyzoo.gpss.web.sale;import com.lyyzoo.bean.Result;
import com.lyyzoo.data.domain.Page;
import com.lyyzoo.gpss.entity.sale.Customer;
import com.lyyzoo.gpss.service.sale.CustomerService;
import com.lyyzoo.gpss.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;/*** <p>** @author bojiangzhou* @date 2017-04-06*/
@Controller
@RequestMapping("/admin/customer")
public class CustomerController extends BaseController {@Autowiredprivate CustomerService customerService;@RequestMapping(value = {"", "/"})public String index(){return "/sale/customer";}@RequestMapping("/page")@ResponseBodypublic Page<Customer> page(String name, int pageNumber, int pageSize){return customerService.page(name, pageNumber, pageSize);}@RequestMapping(value = "/save", method = RequestMethod.POST)@ResponseBodypublic Result save(Customer customer){return customerService.save(customer, getCurrentUser());}@RequestMapping("/remove")@ResponseBodypublic Result remove(Long id){return customerService.remove(id, getCurrentUser());}}