• 大小: 81.17MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2022-02-10
  • 语言: Java
  • 标签: Java后台  ssm框架  

资源简介

微信商城 小程序 前后台源码 Java后台 ssm框架+MySQL 毕业设计 前后台源码

资源截图

代码片段和文件信息

package org.yi.controller;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

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;
import org.yi.dao.CartOperation;
import org.yi.po.Cart;

import com.fasterxml.jackson.databind.objectMapper;

@Controller
@RequestMapping(“/cart“)  
public class CartController {
@Autowired
CartOperation cartOperation;

@RequestMapping(value=“/get_all“produces = “application/json; charset=utf-8“method= {RequestMethod.GET})
@ResponseBody
public object getAll() throws IOException {
Listject> results=cartOperation.getAll();
objectMapper mapper=new objectMapper();
String ret=mapper.writeValueAsString(results);
return ret;
}

@RequestMapping(value = “/add“ produces = “application/json; charset=utf-8“ method = {RequestMethod.GET })
@ResponseBody//警告: No mapping found for HTTP request with URI [/yMybatis/WEB-INF/jsp/cart/add.jsp] in DispatcherServlet with name ‘springmvc‘
//这个警告无关紧要: No mapping found for HTTP request with URI [/yMybatis/] in DispatcherServlet with name ‘springmvc‘
public void add(HttpServletRequest req) throws IOException {
Integer goodId=Integer.valueOf(req.getParameter(“goodId“));
BigDecimal goodPrice=new BigDecimal(req.getParameter(“goodPrice“));
Cart cart=new Cart(goodIdreq.getParameter(“goodName“)goodPrice req.getParameter(“goodMainUrl“)req.getParameter(“goodDetailUrls“));
cartOperation.insert(cart);
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\sqls\
     文件       23664  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\sqls\general_test_cart.sql
     文件        3146  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\sqls\general_test_category.sql
     文件       25465  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\sqls\general_test_good.sql
     文件        2125  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\sqls\general_test_human.sql
     文件        2630  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\sqls\general_test_order.sql
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\
     文件        1382  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.classpath
     文件        1047  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.project
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\
     文件         626  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\.jsdtscope
     文件         422  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.jdt.core.prefs
     文件          86  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.m2e.core.prefs
     文件         823  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.wst.common.component
     文件         245  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          48  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\.settings\org.eclipse.wst.validation.prefs
     文件        2294  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\pom.xml
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\yi\
     目录           0  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\yi\controller\
     文件        1756  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\yi\controller\CartController.java
     文件        1432  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\yi\controller\CategoryController.java
     文件        8164  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\yi\controller\GoodController.java
     文件        1849  2018-02-12 04:00  WechatMiniProgram-shopping-mall-master\Java后台\yMybatis\src\main\java\org\yi\controller\OrderController.java
............此处省略535个文件信息

评论

共有 条评论