上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 一、获取最新商品和热门商品 IndexServlet ProductService ProductDao index.jsp 二、使用ajax显示类别菜单 header.jsp CategoryList ProductService ProductDao 三、分页显示某种类别的商品列表 Produc 阅读全文
posted @ 2018-10-23 00:48 一日看尽长安花cxjj 阅读(354) 评论(0) 推荐(0)
摘要: c3p0-config.xml register.jsp registerFail.jsp registerSuccess.jsp CommonsUtils DatasourceUtils MailUtils User RegisterServlet :注册 ActiveServlet :激活 Ch 阅读全文
posted @ 2018-09-24 04:11 一日看尽长安花cxjj 阅读(235) 评论(0) 推荐(0)
摘要: 分析jar:spring,c3p0,log4j,mysql驱动,mybatis的jar 发现管理工厂包没有,mybatis用来整合spring包。 一、 Mapper动态代理开发 sqlMapConfig.xml applicationContext.xml UserMapper UserMappe 阅读全文
posted @ 2018-03-20 02:35 一日看尽长安花cxjj 阅读(138) 评论(0) 推荐(0)
摘要: 动态slq 定义一对一关系映射 需要在javaBean表示一个订单只有一个用户关系: 在Oders里面定义:private User user; 一对多 一个订单具有多个订单明细; 需求:查询订单(Orders),关联查询订单明细(orderDetail)(一对多查询) 多对多 用户和商品是多对多关 阅读全文
posted @ 2018-03-20 01:22 一日看尽长安花cxjj 阅读(551) 评论(0) 推荐(0)
摘要: User Orders QueryVo sqlMapConfig.xml UserMapper.xml OrdersMapper.xml UserMapper OrdersMapper MybatisMapperTest 阅读全文
posted @ 2018-03-20 00:23 一日看尽长安花cxjj 阅读(908) 评论(0) 推荐(0)
摘要: 普通模式 自定义接口,接口实现类。 思考:需要sqlSessionFactory,生产sqlSession。 UserDao: UserDaoImpl: Main3: 接口代理开发模式 自需要定义接口。 开发约定: l 映射文件namespace必须是接口全类路径名。 l 映射文件的Statemen 阅读全文
posted @ 2018-03-19 23:37 一日看尽长安花cxjj 阅读(700) 评论(0) 推荐(0)
摘要: 需求: l 根据Id查询用户:传递Id l 根据用户名进行模糊查询:传递参数:String Username l 删除:根据Id进行删除 l 修改:根据Id进行修改 l 保存 sqlMapConfig.xml: User: User.xml:(映射到sqlMapConfig.xml) Main1: 阅读全文
posted @ 2018-03-19 23:11 一日看尽长安花cxjj 阅读(236) 评论(0) 推荐(0)
摘要: applicationContext: 阅读全文
posted @ 2018-03-19 17:38 一日看尽长安花cxjj 阅读(144) 评论(0) 推荐(0)
摘要: applicationContext.xml: MyAspectXml: OrderDao: SpringDemo1: 阅读全文
posted @ 2018-03-19 17:29 一日看尽长安花cxjj 阅读(143) 评论(0) 推荐(0)
摘要: applicationContext.xml: OrderDao: MyAspect: SpringDemo1: 阅读全文
posted @ 2018-03-19 16:37 一日看尽长安花cxjj 阅读(204) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 15 下一页