資源簡介
ssm開發購物商城web項目代碼+詳細注釋(使用idea編輯器)
商城項目介紹
商城項目
一 前端展示
1.1注冊
1.2登錄
1.3注銷
1.4商品類別展示
1.5單個商品的展示
1.6 立刻購買(buynow)
1.7購物車(gotoShopcar)
1.8付款
二 后端管理
用戶管理
增加編輯頁面
商品管理
編輯界面
商品類別管理
編輯頁面
三 開發計劃
3.1了解需求
3.2 表結構設計
3.3 編碼階段
代碼片段和文件信息
package?com.qf.shoppingcenter.controller;
import?com.qf.shoppingcenter.entity.TAddress;
import?com.qf.shoppingcenter.entity.TUser;
import?com.qf.shoppingcenter.service.TAddressService;
import?org.springframework.web.bind.annotation.*;
import?org.springframework.web.servlet.ModelAndView;
import?javax.annotation.Resource;
import?javax.servlet.http.HttpServletRequest;
import?java.util.List;
/**
?*?(TAddress)表控制層
?*
?*?@author?makejava
?*?@since?2020-05-18?20:21:26
?*/
@RestController
@RequestMapping(“/tAddress“)
public?class?TAddressController?{
????/**
?????*?服務對象
?????*/
????@Resource
????private?TAddressService?tAddressService;
????/**
?????*?新增地址信息
?????*?@param?request
?????*?@param?shouhuoren
?????*?@param?phone
?????*?@param?address
?????*?@return
?????*/
????@RequestMapping(“/addAddress.action“)
????public?ModelAndView?addAddress(HttpServletRequest?request@RequestParam(“shouhuoren“)String?shouhuoren?@RequestParam(“phone“)String?phone?@RequestParam(“address“)String?address){
????????TAddress?tAddress=new?TAddress();
????????tAddress.setShouhuoren(shouhuoren);
????????tAddress.setPhone(phone);
????????tAddress.setAddress(address);
????????tAddress.setIsdefault(“否“);
????????tAddress.setUserid(((TUser)request.getSession().getAttribute(“user1“)).getId());
????????System.out.println(address);
????????System.out.println(tAddress);
????????int?result=tAddressService.addAddress(tAddress);
????????//獲得用戶編號
????????Integer?uid=((TUser)(request.getSession().getAttribute(“user1“))).getId();
????????//根據用戶編號查詢收貨信息
????????List?addressList1=tAddressService.findAddressByUid(uid);
????????//創建ModelAndView對象跳轉頁面
????????ModelAndView?mav=new?ModelAndView(“pay.jsp“);
????????mav.addobject(“addressList“addressList1);
????????return?mav;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-05-31?10:09??ShoppingCenterlianxi\
?????目錄???????????0??2020-05-31?17:34??ShoppingCenterlianxi\.idea\
?????文件?????????489??2020-05-18?19:46??ShoppingCenterlianxi\.idea\$PRODUCT_WORKSPACE_FILE$
?????文件?????????617??2020-05-31?15:33??ShoppingCenterlianxi\.idea\compiler.xm
?????目錄???????????0??2020-05-31?15:33??ShoppingCenterlianxi\.idea\dataSources\
?????文件?????????984??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources.local.xm
?????文件?????????499??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources.xm
?????目錄???????????0??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\
?????文件???????49211??2020-05-31?15:33??ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6.xm
?????目錄???????????0??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\
?????目錄???????????0??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\_src_\
?????目錄???????????0??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\_src_\schema\
?????文件??????????76??2020-05-19?17:40??ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\_src_\schema\information_schema.FNRwLQ.me
?????目錄???????????0??2020-05-18?20:21??ShoppingCenterlianxi\.idea\EasyCodeConfig\
?????文件????????1251??2020-05-27?22:44??ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_address.json
?????文件????????1999??2020-05-18?20:21??ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_goods_info.json
?????文件?????????978??2020-05-18?20:21??ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_goods_type.json
?????文件????????2118??2020-05-18?20:21??ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_order.json
?????文件????????1844??2020-05-18?20:21??ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_order_detail.json
?????文件????????1377??2020-05-18?20:21??ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_user.json
?????文件?????????177??2020-05-18?20:31??ShoppingCenterlianxi\.idea\encodings.xm
?????文件?????????656??2020-05-18?20:31??ShoppingCenterlianxi\.idea\misc.xm
?????文件????????8915??2020-05-20?21:27??ShoppingCenterlianxi\.idea\uiDesigner.xm
?????文件???????17332??2020-05-31?17:34??ShoppingCenterlianxi\.idea\workspace.xm
?????文件???????11015??2020-05-30?20:22??ShoppingCenterlianxi\pom.xm
?????文件?????4810241??2020-05-31?17:24??ShoppingCenterlianxi\qf.log
?????文件??????130714??2020-05-24?16:05??ShoppingCenterlianxi\qf.log.2020-05-24
?????文件?????1661237??2020-05-25?22:52??ShoppingCenterlianxi\qf.log.2020-05-25
?????文件?????3189750??2020-05-26?22:30??ShoppingCenterlianxi\qf.log.2020-05-26
?????文件?????4569624??2020-05-27?22:13??ShoppingCenterlianxi\qf.log.2020-05-27
?????文件?????1544858??2020-05-28?21:41??ShoppingCenterlianxi\qf.log.2020-05-28
............此處省略1495個文件信息
評論
共有 條評論