上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 34 下一页

2017年11月15日

收货地址管理模块

摘要: 功能: 1.添加地址 controller层用到了SpringMVC中的数据绑定的对象绑定方式: 1 @RequestMapping(value = "add.do", method = RequestMethod.POST) 2 @ResponseBody 3 //这里直接传shipping对象, 阅读全文

posted @ 2017-11-15 21:20 二十年后20 阅读(480) 评论(0) 推荐(0) 编辑

购物车模块

摘要: 功能: 1.加入商品或更新商品数量 controller层实现: 传入userId,productId和商品数量,进service层判断,如果productId已经传入,则说明购物车中已经有该商品,则只更新商品数量即可,如果没有传入productId,则说明购物车中没有改商品,则直接新增即可。 1 阅读全文

posted @ 2017-11-15 16:59 二十年后20 阅读(306) 评论(0) 推荐(0) 编辑

4. Median of Two Sorted Arrays

摘要: 题目链接:https://leetcode.com/problems/median-of-two-sorted-arrays/description/ 题目大意:给出两个有序数组,找出他们的中位数,如果是偶数,要计算两个最中间的数的均值。 法一:模拟归并排序的核心算法,将两个有序数组合成一个有序数组 阅读全文

posted @ 2017-11-15 16:26 二十年后20 阅读(88) 评论(0) 推荐(0) 编辑

2017年11月14日

pageHelper插件+传统分页处理

摘要: 为什么要使用pageHelper:https://www.cnblogs.com/ljdblog/p/6725094.html 配置文件详解:https://www.cnblogs.com/cksvsaaa/p/6036068.html,https://www.cnblogs.com/digdeep 阅读全文

posted @ 2017-11-14 10:37 二十年后20 阅读(168) 评论(0) 推荐(0) 编辑

2017年11月13日

PO-BO-VO-DTO-POJO-DAO

摘要: POJO,BO,VO的关系: 简单理解:http://www.blogjava.net/vip01/archive/2007/01/08/92430.html 全面:https://www.cnblogs.com/yxnchinahlj/archive/2012/02/24/2366110.html 阅读全文

posted @ 2017-11-13 20:45 二十年后20 阅读(420) 评论(0) 推荐(0) 编辑

guava库

摘要: 官方文档(FQ访问):http://google.github.io/guava/releases/snapshot-jre/api/docs/ 使用详情: 1.Set<Category> categorySet = Sets.newHashSet(); 2.List<Integer> catego 阅读全文

posted @ 2017-11-13 20:16 二十年后20 阅读(178) 评论(0) 推荐(0) 编辑

集合类---set

摘要: 定义:一个不包含重复元素的collection。set 不包含满足 e1.equals(e2) 的元素对 e1 和 e2,并且最多包含一个 null 元素,不保证集合里元素的顺序。 方法使用详解: 1.int size() 2.boolean isEmpty() 3.boolean contains 阅读全文

posted @ 2017-11-13 17:04 二十年后20 阅读(173) 评论(0) 推荐(0) 编辑

3.Longest Substring Without Repeating Characters

摘要: 题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/description/ 题目大意:找出一串字符串的最长无重复子串。例子如下: 法一:两层for循环,一个字符一个字符的遍历其后是否有子 阅读全文

posted @ 2017-11-13 09:55 二十年后20 阅读(180) 评论(0) 推荐(0) 编辑

2017年11月11日

商品管理模块

摘要: 功能: 前台: 1.产品搜索 controller层实现:根据关键字或分类id进行搜索。 1 /** 2 * 前台搜索商品列表:搜索,分页,排序 3 * @param keyword 搜索关键字 4 * @param categoryId 分类id 5 * @param pageNum 页码 6 * 阅读全文

posted @ 2017-11-11 17:33 二十年后20 阅读(362) 评论(0) 推荐(0) 编辑

分类管理模块

摘要: 功能: 1.增加分类 2.修改分类名字 3.获取当前子分类 4.获取当前分类的所有子分类(递归获取) controller层实现: 1 @RequestMapping(value = "get_category_and_deep_children_category.do", method = Req 阅读全文

posted @ 2017-11-11 16:44 二十年后20 阅读(240) 评论(0) 推荐(0) 编辑

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 34 下一页

导航